diff --git a/cmd/energy/build.bat b/cmd/energy/build.bat index 9132b8aa..3be24109 100644 --- a/cmd/energy/build.bat +++ b/cmd/energy/build.bat @@ -1,9 +1,43 @@ SET CGO_ENABLED=0 +set GOARCH=386 +set GOOS=windows +go build -trimpath -ldflags "-s -w" -o energy-windows32.exe energy.go +md5.exe energy-windows32.exe + +set GOARCH=amd64 +set GOOS=windows +go build -trimpath -ldflags "-s -w" -o energy-windows64.exe energy.go +md5.exe energy-windows64.exe + +set GOARCH=amd64 +set GOOS=darwin +go build -trimpath -ldflags "-s -w" -o energy-macosx64 energy.go +md5.exe energy-macosx64 + +set GOARCH=arm64 +set GOOS=darwin +go build -trimpath -ldflags "-s -w" -o energy-macosarm64 energy.go +md5.exe energy-macosarm64 + +set GOARCH=386 +set GOOS=linux +go build -trimpath -ldflags "-s -w" -o energy-linux32 energy.go +md5.exe energy-linux32 set GOARCH=amd64 set GOOS=linux go build -trimpath -ldflags "-s -w" -o energy-linux64 energy.go md5.exe energy-linux64 +set GOARCH=arm +set GOOS=linux +go build -trimpath -ldflags "-s -w" -o energy-linuxarm energy.go +md5.exe energy-linuxarm + +set GOARCH=arm64 +set GOOS=linux +go build -trimpath -ldflags "-s -w" -o energy-linuxarm64 energy.go +md5.exe energy-linuxarm64 + pause \ No newline at end of file