Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bjdgyc authored Jan 28, 2024
1 parent 5371e45 commit 87e50e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ cd $cpath/web
#国内可替换源加快速度
#npx browserslist@latest --update-db
if [ "$github_action" == "github_action" ]; then
yarn install --registry=https://registry.npmmirror.com
else
yarn install
else
yarn install --registry=https://registry.npmmirror.com
fi

yarn run build
Expand All @@ -52,10 +52,10 @@ fi

#github action
go mod tidy
go build -o anylink_amd64 "$flags" -ldflags "$ldflags"
go build -o anylink_amd64 $flags -ldflags "$ldflags"

#arm64交叉编译
CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ go build -o anylink_arm64 "$flags" -ldflags "$ldflags"
CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ go build -o anylink_arm64 $flags -ldflags "$ldflags"

./anylink_amd64 -v
./anylink_arm64 -v
Expand Down

0 comments on commit 87e50e8

Please sign in to comment.