mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-12 21:35:40 +08:00
add static build tag to release script
This commit is contained in:
@@ -9,7 +9,7 @@ mkdir -p build
|
||||
|
||||
build() {
|
||||
echo -n "=> $1-$2: "
|
||||
GOOS=$1 GOARCH=$2 go build -o build/$NAME-$1-$2 -ldflags "-X main.Version=$VERSION -X main.gitHash=`git rev-parse HEAD`" ./main.go
|
||||
GOOS=$1 GOARCH=$2 CGO_ENABLED=0 go build -o build/$NAME-$1-$2 -ldflags "-X main.Version=$VERSION -X main.gitHash=`git rev-parse HEAD`" ./main.go
|
||||
du -h build/$NAME-$1-$2
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user