From c5ef9cbaadba7cf978a9ba00cc47d8b7ac509fc9 Mon Sep 17 00:00:00 2001 From: lanthora Date: Fri, 6 Dec 2024 21:30:30 +0800 Subject: [PATCH] docs: add build in README --- Makefile | 2 +- README.md | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c950ffd..2ce3da5 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -GOBUILD = env CGO_ENABLED=0 go build -trimpath -ldflags '-w -s' -o cacao +GOBUILD = CGO_ENABLED=0 go build -trimpath -ldflags '-w -s' -o cacao default: cacao diff --git a/README.md b/README.md index 340eab7..e25ad59 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,16 @@ Candy Server with WebUI +## Build + +```bash +# build a binary that runs natively +make + +# build multiple platform binaries +make all +``` + ## Run ```bash