This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "os/user" | |
| "path/filepath" | |
| "strings" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env sh | |
| # | |
| # For using UPX on linux, goupx (https://github.com/pwaller/goupx) needs to be | |
| # available in $PATH. | |
| # install goupx: | |
| # GOPATH=${HOME}/.local go get github.com/pwaller/goupx | |
| # sudo ln -s "${HOME}/.local/bin/goupx" "/usr/local/bin/" | |
| # | |
| # self reference: https://gist.github.com/jojomi/0eed777db2617e9fb0af#file-build-sh |