mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 06:05:06 +03:00
Update build
More portable way to strip the `.go` extension from files when packing with upx.
This commit is contained in:
parent
2c3074a979
commit
c4d28c4f65
1 changed files with 1 additions and 1 deletions
2
build
2
build
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue