From 63981f7877acebde2ec92bd410c28cb45c3da0fc Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 28 Nov 2021 19:38:19 +0800 Subject: [PATCH] =?UTF-8?q?arm=20=E4=BA=A4=E5=8F=89=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 4 ++-- docker/ubuntu.sh | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a5d21085..a8272eb2 100644 --- a/Makefile +++ b/Makefile @@ -184,7 +184,7 @@ hi: echo ${VERSION} .PHONY: arm -arm: +arm: clean mkdir -p dist/release git clone https://github.com/YaoApp/xiang dist/release git clone https://github.com/YaoApp/kun dist/kun @@ -208,7 +208,7 @@ arm: # 制品 mkdir -p dist - CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++ CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 go build -v -o ../../.tmp/xiang-${VERSION}-linux-arm + cd dist/release && CC=arm-linux-gnueabi-gcc CXX=arm-linux-gnueabi-g++ CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 go build -v -o ../../.tmp/xiang-${VERSION}-linux-arm rm -rf dist/release mkdir -p dist/release diff --git a/docker/ubuntu.sh b/docker/ubuntu.sh index 4c671b97..49f5b9fc 100644 --- a/docker/ubuntu.sh +++ b/docker/ubuntu.sh @@ -16,5 +16,4 @@ export GOPROXY="https://goproxy.cn" export http_proxy="socks5://192.168.199.178:1080" export https_proxy="socks5://192.168.199.178:1080" export NODE_OPTIONS="--max-old-space-size=5120" - export PATH=~/go/bin:$PATH \ No newline at end of file