mirror of
https://github.com/gl-inet/glkvm-cloud.git
synced 2026-09-20 17:43:29 +00:00
build.sh: fix GOPATH
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
targets=linux/386,linux/amd64,linux/arm,linux/arm64,linux/mips,linux/mips64,linux/mipsle,linux/mips64le,windows/*,darwin/*
|
||||
|
||||
xgo -targets=$targets -ldflags="-s -w" -dest=bin .
|
||||
GOPATH=$(go env GOPATH) xgo -targets=$targets -ldflags="-s -w" -dest=bin .
|
||||
|
||||
sudo chown -R `id -un` bin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user