Skip to content

Commit

Permalink
attempt to fix win builds
Browse files Browse the repository at this point in the history
Looks like the builds have been failing because curl didn't like the defined "OutFile" because it contained a newline at the end. We fix that with trim(). See also:

 * https://stackoverflow.com/a/59218860/1174102
  • Loading branch information
maltfield committed Mar 8, 2024
1 parent a5ee7ae commit 3f47916
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/windows/buildExe.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ $file_url = "https://github.com/vsajip/python-gnupg/releases/download/0.5.2/pyth
$signature_url = "https://github.com/vsajip/python-gnupg/releases/download/0.5.2/python_gnupg-0.5.2-py2.py3-none-any.whl.asc" | Out-String

# download the latest version of the python-gnupg module
$filename = "$(Split-Path -Leaf "${file_url}")"
$filename = "${filename}.trim()" # https://stackoverflow.com/a/59218860/1174102
curl -OutFile $(Split-Path -Leaf "${file_url}") "${file_url}" | Out-String
$filename = Get-ChildItem -Name | Select-Object -First 1
echo $filename | Out-String

# get the URL to download the detached signature file
Expand Down

0 comments on commit 3f47916

Please sign in to comment.