mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-07 23:04:17 +08:00
删除armv7
This commit is contained in:
20
server/build_test.sh
Normal file
20
server/build_test.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
# docker run -it --rm -v $PWD:/app -v /go:/go -w /app --platform=linux/arm64 golang:alpine3.19 sh build_test.sh
|
||||
|
||||
set -x
|
||||
|
||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
||||
export GOPROXY=https://goproxy.cn
|
||||
|
||||
|
||||
apk add build-base tzdata gcc musl-dev upx
|
||||
|
||||
go build -o anylink
|
||||
|
||||
#go build -o anylink -ldflags "-extldflags '-static'"
|
||||
|
||||
go env
|
||||
uname -a
|
||||
|
||||
./anylink -v
|
Reference in New Issue
Block a user