Skip to content

Commit

Permalink
Makefile: ensure released versions are executable
Browse files Browse the repository at this point in the history
Previously we would stream the compressed output via stdin and stdout
which meant we lost the executable bit on the input file. Use a
different set of flags to bzip2 to preserve permissions.
  • Loading branch information
kevinburke1 authored and kevinburke committed Apr 29, 2020
1 parent 572da5a commit f53f460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ bin/windows/amd64/$(EXECUTABLE).exe:
# compressed artifacts, makes a huge difference (Go executable is ~9MB,
# after compressing ~2MB)
%.bz2: %
bzip2 -c < "$<" > "$@"
bzip2 --keep "$<"
%.zip: %.exe
zip "$@" "$<"

Expand Down

0 comments on commit f53f460

Please sign in to comment.