Skip to content

Commit

Permalink
chore: remove .exe from windows artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriknielaender authored Jul 28, 2024
1 parent 0a1a1de commit 3edb772
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
for binary in zig-out/*; do
filename=$(basename "$binary")
if [[ "$filename" == *"windows"* ]]; then
zip -j artifacts/"${filename}.zip" "$binary"
# Remove .exe from the filename before creating the ZIP file
zip_name="${filename%.exe}"
zip -j artifacts/"${zip_name}.zip" "$binary"
else
tar -czvf artifacts/"${filename}.tar.gz" -C zig-out "$filename"
fi
Expand Down

0 comments on commit 3edb772

Please sign in to comment.