From 7f3ae2ab306668a905d8ac13546961708a72cbc4 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Sat, 28 Dec 2019 09:53:55 -0500 Subject: [PATCH] feat: ARM support Modifies `bin/build_release.sh` to compile releases for ARM versions 5, 6, and 7. --- bin/build_release.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/bin/build_release.sh b/bin/build_release.sh index 21d899e..765bdcb 100755 --- a/bin/build_release.sh +++ b/bin/build_release.sh @@ -11,12 +11,26 @@ go mod vendor && go mod tidy cd "$APPDIR/cmd/cheat" go clean && go generate -# compile AMD64 for Linux, OSX, and Windows +# amd64/darwin env GOOS=darwin GOARCH=amd64 go build -mod vendor -o \ "$APPDIR/dist/cheat-darwin-amd64" "$APPDIR/cmd/cheat" +# amd64/linux env GOOS=linux GOARCH=amd64 go build -mod vendor -o \ "$APPDIR/dist/cheat-linux-amd64" "$APPDIR/cmd/cheat" +# amd64/windows env GOOS=windows GOARCH=amd64 go build -mod vendor -o \ "$APPDIR/dist/cheat-win-amd64.exe" "$APPDIR/cmd/cheat" + +# arm7/linux +env GOOS=linux GOARCH=arm GOARM=7 go build -mod vendor -o \ + "$APPDIR/dist/cheat-linux-arm7" "$APPDIR/cmd/cheat" + +# arm6/linux +env GOOS=linux GOARCH=arm GOARM=6 go build -mod vendor -o \ + "$APPDIR/dist/cheat-linux-arm6" "$APPDIR/cmd/cheat" + +# arm5/linux +env GOOS=linux GOARCH=arm GOARM=5 go build -mod vendor -o \ + "$APPDIR/dist/cheat-linux-arm5" "$APPDIR/cmd/cheat"