mirror of
https://github.com/cheat/cheat.git
synced 2024-11-22 05:51:35 +01:00
feat: ARM support
Modifies `bin/build_release.sh` to compile releases for ARM versions 5, 6, and 7.
This commit is contained in:
parent
326c54147b
commit
7f3ae2ab30
@ -11,12 +11,26 @@ go mod vendor && go mod tidy
|
|||||||
cd "$APPDIR/cmd/cheat"
|
cd "$APPDIR/cmd/cheat"
|
||||||
go clean && go generate
|
go clean && go generate
|
||||||
|
|
||||||
# compile AMD64 for Linux, OSX, and Windows
|
# amd64/darwin
|
||||||
env GOOS=darwin GOARCH=amd64 go build -mod vendor -o \
|
env GOOS=darwin GOARCH=amd64 go build -mod vendor -o \
|
||||||
"$APPDIR/dist/cheat-darwin-amd64" "$APPDIR/cmd/cheat"
|
"$APPDIR/dist/cheat-darwin-amd64" "$APPDIR/cmd/cheat"
|
||||||
|
|
||||||
|
# amd64/linux
|
||||||
env GOOS=linux GOARCH=amd64 go build -mod vendor -o \
|
env GOOS=linux GOARCH=amd64 go build -mod vendor -o \
|
||||||
"$APPDIR/dist/cheat-linux-amd64" "$APPDIR/cmd/cheat"
|
"$APPDIR/dist/cheat-linux-amd64" "$APPDIR/cmd/cheat"
|
||||||
|
|
||||||
|
# amd64/windows
|
||||||
env GOOS=windows GOARCH=amd64 go build -mod vendor -o \
|
env GOOS=windows GOARCH=amd64 go build -mod vendor -o \
|
||||||
"$APPDIR/dist/cheat-win-amd64.exe" "$APPDIR/cmd/cheat"
|
"$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"
|
||||||
|
Loading…
Reference in New Issue
Block a user