build: use crazymax/xgo

pull/958/head
Xhofe 2022-04-16 16:43:21 +08:00
parent fd80e3eaf7
commit 3c2d59e272
3 changed files with 6 additions and 6 deletions

View File

@ -32,8 +32,8 @@ jobs:
- name: Install upx
run: |
docker pull techknowlogick/xgo:latest
go install src.techknowlogick.com/xgo@latest
docker pull crazymax/xgo:latest
go install github.com/crazy-max/xgo@latest
sudo apt install upx
- name: Build

View File

@ -29,8 +29,8 @@ jobs:
- name: Install upx
run: |
docker pull techknowlogick/xgo:latest
go install src.techknowlogick.com/xgo@latest
docker pull crazymax/xgo:latest
go install github.com/crazy-max/xgo@latest
sudo apt install upx
- name: Build

View File

@ -62,9 +62,9 @@ BUILD() {
"
if [ "$1" == "release" ]; then
xgo -out "$appName" -buildvcs=false -ldflags="$ldflags" -tags=jsoniter .
xgo -out "$appName" -ldflags="$ldflags" -tags=jsoniter .
else
xgo -targets=linux/amd64,windows/amd64,darwin/amd64 -out "$appName" -buildvcs=false -ldflags="$ldflags" -tags=jsoniter .
xgo -targets=linux/amd64,windows/amd64,darwin/amd64 -out "$appName" -ldflags="$ldflags" -tags=jsoniter .
fi
mkdir -p "build"
mv alist-* build