Skip to content

Commit c3c29b7

Browse files
committed
Makefile: ensure released versions are executable
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.
1 parent 59f271b commit c3c29b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bin/windows/amd64/$(EXECUTABLE).exe:
5050
# compressed artifacts, makes a huge difference (Go executable is ~9MB,
5151
# after compressing ~2MB)
5252
%.bz2: %
53-
bzip2 -c < "$<" > "$@"
53+
bzip2 --keep "$<"
5454
%.zip: %.exe
5555
zip "$@" "$<"
5656

0 commit comments

Comments
 (0)