cerca

lean forum software (pmc local branch)
Log | Files | Refs | README | LICENSE

commit 9c4b2b097c6e174b575136356cc4865e932d00d4
parent 553edadf17558020086ae9577c675bcbcfc58489
Author: decentral1se <cellarspoon@riseup.net>
Date:   Sun, 21 Jul 2024 22:26:06 +0200

docs: binary size

Closes https://github.com/cblgh/cerca/issues/65

Diffstat:
MREADME.md | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -80,3 +80,17 @@ To launch a local instance of the forum, run those commands (linux): - `go run run.go --authkey 0 --allowlist temp.txt --dev` It should respond `Serving forum on :8277`. Just go on [http://localhost:8277](http://localhost:8277). + +### Reduce binary build size (*Very Optional ™*) + +Pass `-ldflags="-s -w"` when building your binary. + +``` +go build -ldflags="-s -w" . +``` + +Additionaly, run [upx](https://upx.github.io) on any generated binary: + +``` +upx --lzma cerca +```