mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-11-09 22:19:11 +08:00
fix
This commit is contained in:
@@ -28,7 +28,7 @@ gopath=/go
|
|||||||
dockercmd=$(
|
dockercmd=$(
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
||||||
apk add gcc g++ musl musl-dev
|
apk add gcc g++ musl musl-dev tzdata
|
||||||
export GOPROXY=https://goproxy.cn
|
export GOPROXY=https://goproxy.cn
|
||||||
go mod tidy
|
go mod tidy
|
||||||
echo "build:"
|
echo "build:"
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
#!/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 "-s -w -extldflags '-static'"
|
|
||||||
|
|
||||||
|
|
||||||
go env
|
|
||||||
uname -a
|
|
||||||
|
|
||||||
./anylink -v
|
|
||||||
Reference in New Issue
Block a user