doc/README: fix ldflags invocation in faq

This commit is contained in:
mappu 2024-08-25 16:54:15 +12:00
parent aec8e159d5
commit a6f0a3cca5

View File

@ -31,7 +31,7 @@ You must also meet your Qt license obligations.
### Q1. Why are the binaries so big? ### Q1. Why are the binaries so big?
Make sure to compile with `go build "-ldflags -s -w"`. This reduces the `helloworld` example from 43MB to 6MB. Make sure to compile with `go build -ldflags "-s -w"`. This reduces the `helloworld` example from 43MB to 6MB.
Then, it's possible to reduce the size further with `upx --best` to 2MB or `upx --lzma` to 1.4MB. Then, it's possible to reduce the size further with `upx --best` to 2MB or `upx --lzma` to 1.4MB.