修改:1、修改makefile

This commit is contained in:
pengwang 2021-07-22 14:18:27 +08:00
parent e0f93e2c1c
commit 00bc48c104
2 changed files with 10 additions and 0 deletions

View File

@ -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:

8
releaseAll.sh Executable file
View File

@ -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/