mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-04 01:07:49 +02: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:
|
gomips:
|
||||||
- softfloat
|
- softfloat
|
||||||
main: ./cmd/ctrld
|
main: ./cmd/ctrld
|
||||||
|
hooks:
|
||||||
|
post: /bin/sh ./scripts/upx.sh
|
||||||
archives:
|
archives:
|
||||||
- format_overrides:
|
- format_overrides:
|
||||||
- goos: windows
|
- goos: windows
|
||||||
|
|||||||
Executable
+7
@@ -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