Updates build instructions
This commit is contained in:
parent
ebbf92d92d
commit
e1d13dd927
14
README.md
14
README.md
|
@ -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`
|
||||
|
||||
|
|
Loading…
Reference in New Issue