From 00bc48c10468cfc50e63320b1390da03a25a3a95 Mon Sep 17 00:00:00 2001 From: pengwang <969753572@qq.com> Date: Thu, 22 Jul 2021 14:18:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A1=E3=80=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9makefile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 ++ releaseAll.sh | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100755 releaseAll.sh diff --git a/Makefile b/Makefile index bcc01ff..f67b155 100755 --- a/Makefile +++ b/Makefile @@ -7,6 +7,8 @@ linux-armv5: CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -o openGW -ldflags "-s -w" linux-armv7: CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -o openGW -ldflags "-s -w" +linux-arm64: + CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o openGW -ldflags "-s -w" linux-386: CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o openGW -ldflags "-s -w" linux-amd64: diff --git a/releaseAll.sh b/releaseAll.sh new file mode 100755 index 0000000..b47a6b3 --- /dev/null +++ b/releaseAll.sh @@ -0,0 +1,8 @@ +make linux-armv5 +cp openGW ../Release/linux-armv5/ +make linux-arm64 +cp openGW ../Release/linux-arm64/ +make linux-amd64 +cp openGW ../Release/linux-amd64/ +make windows-amd64 +cp openGW.exe ../Release/windows-amd64/ \ No newline at end of file