Skip to content

Commit

Permalink
U: energy cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sxmxta committed Dec 17, 2024
1 parent 98437ff commit e9b16ca
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions cmd/energy/build.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e9b16ca

Please sign in to comment.