Skip to content

Commit

Permalink
add darwin/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
xmdhs committed Jun 14, 2022
1 parent f274538 commit dfbd1d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ LDFLAGS="-X 'main.buildDate=$(date)' -X 'main.gitHash=$(git rev-parse HEAD)' -X
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o gml-windows.exe -trimpath -ldflags "${LDFLAGS}"
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gml-linux -trimpath -ldflags "${LDFLAGS}"
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o gml-darwin -trimpath -ldflags "${LDFLAGS}"
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o gml-darwin-arm -trimpath -ldflags "${LDFLAGS}"

# sha256
sha256sum gml* > gml-sha256
cat gml-sha256

# chmod
chmod +x gml-*

# gzip
gzip --best gml*

0 comments on commit dfbd1d0

Please sign in to comment.