Skip to content

Instantly share code, notes, and snippets.

@parsibox
Created March 9, 2024 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parsibox/5a6c51a191c7aaf30da2afc0b9305010 to your computer and use it in GitHub Desktop.
Save parsibox/5a6c51a191c7aaf30da2afc0b9305010 to your computer and use it in GitHub Desktop.
windows command for goland to build go for linux os and then compress file with upx and then open folder in explorer
$Env:GOOS = "linux" ; $Env:GOARCH = "amd64"; go build -o TelircoEsbLog -ldflags "-w -s" ../main.go ; C:\portable\upx-4.0.2-win64\upx.exe TelircoEsbLog ; explorer .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment