mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
Add upx to goreleaser builds
Reducing the size of the final binaries, except for darwin, where the packed binaries failed to run.
This commit is contained in:
committed by
Cuong Manh Le
parent
a08b39be16
commit
f13f61592c
@@ -25,6 +25,8 @@ builds:
|
||||
gomips:
|
||||
- softfloat
|
||||
main: ./cmd/ctrld
|
||||
hooks:
|
||||
post: /bin/sh ./scripts/upx.sh
|
||||
archives:
|
||||
- format_overrides:
|
||||
- goos: windows
|
||||
|
||||
7
scripts/upx.sh
Executable file
7
scripts/upx.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
for dist_dir in ./dist/ctrld*; do
|
||||
upx --brute "${dist_dir}/ctrld"
|
||||
done
|
||||
Reference in New Issue
Block a user