5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-25 23:01:38 +00:00

Update build

More portable way to strip the `.go` extension from files when packing with upx.
This commit is contained in:
Arceliar 2018-06-21 09:29:05 -05:00 committed by GitHub
parent 2c3074a979
commit c4d28c4f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
build
View File

@ -20,6 +20,6 @@ for file in *.go ; do
go build -ldflags="-s -w" -v $file go build -ldflags="-s -w" -v $file
fi fi
if [ $UPX ]; then if [ $UPX ]; then
upx --brute ${file/.go/} upx --brute ${file%.go}
fi fi
done done