Skip to content

Commit

Permalink
添加 release.sh 脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
bjdgyc committed Jan 29, 2024
1 parent a5d9764 commit 769c304
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ gopath=$(go env GOPATH)
go mod tidy

#使用 musl-dev 编译
docker run -it --rm -v $PWD:/app -v $gopath:/go -w /app --platform=linux/amd64 \
docker run -q --rm -v $PWD:/app -v $gopath:/go -w /app --platform=linux/amd64 \
golang:1.20-alpine3.19 go build -o anylink_amd64 $flags -ldflags "$ldflags"
#arm64交叉编译
docker run -it --rm -v $PWD:/app -v $gopath:/go -w /app --platform=linux/arm64 \
docker run -q --rm -v $PWD:/app -v $gopath:/go -w /app --platform=linux/arm64 \
golang:1.20-alpine3.19 go build -o anylink_amd64 $flags -ldflags "$ldflags"

./anylink_amd64 -v
Expand Down

0 comments on commit 769c304

Please sign in to comment.