Newer
Older
zardoz / build.sh
Loweel on 17 Aug 822 bytes First Commit
#!/bin/bash 

rm ./zardoz

GOOS=linux GOARCH=arm64 CGO_ENABLED=0  go build -mod=vendor
file zardoz
mv ./zardoz ./binaries/arm64/zardoz
tar -cvzf  ./binaries/tgz/zardoz_arm64.tgz -C ./binaries/arm64 . --owner=0 --group=0
 
GOOS=linux GOARCH=arm   CGO_ENABLED=0 GOARM=7 go build -mod=vendor
file zardoz
mv ./zardoz ./binaries/armv7/zardoz
tar -cvzf  ./binaries/tgz/zardoz_armv7.tgz -C  ./binaries/armv7 . --owner=0 --group=0 

GOOS=linux GOARCH=mips   CGO_ENABLED=0  go build -mod=vendor
file zardoz
mv ./zardoz ./binaries/mips32/zardoz
tar -cvzf  ./binaries/tgz/zardoz_mips32.tgz  -C ./binaries/mips32 . --owner=0 --group=0 

GOOS=linux GOARCH=amd64   CGO_ENABLED=0  go build -mod=vendor
file zardoz
mv ./zardoz ./binaries/amd64/zardoz
tar -cvzf  ./binaries/tgz/zardoz_amd64.tgz -C ./binaries/amd64 . --owner=0 --group=0