Skip to content

Instantly share code, notes, and snippets.

@tenox7
Last active February 19, 2022 22:59
Show Gist options
  • Save tenox7/3b0b445db0b670624031828147aa484f to your computer and use it in GitHub Desktop.
Save tenox7/3b0b445db0b670624031828147aa484f to your computer and use it in GitHub Desktop.
eval "$(go tool dist list | awk -v FS=/ -v BIN=stc '{ print "GOOS=" $1 " GOARCH=" $2 " go build -o out/" BIN "-" $2 "-" gensub(/windows/, "windows.exe", "g", $1) }' )"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment