1
0
Fork 0

Updates build instructions

This commit is contained in:
sloum 2021-06-23 20:46:29 -07:00
parent ebbf92d92d
commit e1d13dd927
1 changed files with 6 additions and 8 deletions

View File

@ -23,17 +23,15 @@ At present there is no keyboard input. This is on the TODO list and should get a
## Building
Minor build variations can be found for each system. Using `upx` will reduce binary size by a good bit for any of these systems. After running the build command, and optionally running upx, move the resulting binary onto your path and you are good to go. Makefile coming soon<sup>TM</sup>.
Minor build variations can be found for each system. Using upx (`apt install upx` or `brew install upx`) will reduce binary size by a good bit for any of these systems. After running the build command, and optionally running upx, move the resulting binary onto your path and you are good to go. Makefile coming soon<sup>TM</sup>.
### OSX
### OSX / Linux
`go build -ldflags "-s -w" .`
If not using upx just do everything before the `&&`.
`go build -ldflags "-s -w" -o gnums && upx gnums`
### Windows
`go build -ldflags "-s -w -H=windowsgui -extldflags=-static" .`
### Linux
`go build`
`go build -ldflags "-s -w -H=windowsgui -extldflags=-static" -o gnums.exe`