cerca

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

commit 895c55b9a352a4494babddf6f28a69c2da3aa04d
parent 9c4b2b097c6e174b575136356cc4865e932d00d4
Author: Alexander Cobleigh <angellus.falsus@gmail.com>
Date:   Mon, 22 Jul 2024 11:16:57 +0200

Update README.md
Diffstat:
MREADME.md | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -81,15 +81,18 @@ To launch a local instance of the forum, run those commands (linux): It should respond `Serving forum on :8277`. Just go on [http://localhost:8277](http://localhost:8277). -### Reduce binary build size (*Very Optional ™*) +### Building binaries with reduced size +This is optional, but if you want to minimize the size of any binary (whether it be the `cerca` executable +or any of the binaries in [`cmd/`](/cmd/) follow the instructions below. Less useful for active development, more +useful for sending binaries to other computers. -Pass `-ldflags="-s -w"` when building your binary. +Pass `-ldflags="-s -w"` when building your binary: ``` go build -ldflags="-s -w" . ``` -Additionaly, run [upx](https://upx.github.io) on any generated binary: +Additionally, run [upx](https://upx.github.io) on any generated binary: ``` upx --lzma cerca