docs(readme): add magefile build documentation

This commit is contained in:
zarazaex69
2026-04-13 00:49:44 +03:00
parent 86a0e98ed0
commit 94e62d058b
+32 -2
View File
@@ -24,6 +24,38 @@ issues? contact us at [@openlibrecommunity](https://t.me/openlibrecommunity)
or wait for the release or at least a beta
## magefile
```bash
# install mage first
go install github.com/magefile/mage@latest
# build cli + ui
mage build
# build cli only
mage buildCLI
# build ui only
mage buildUI
# cross-compile for linux / windows / darwin
mage cross
# android aar via gomobile
mage mobile
# container image
mage podman
mage docker
# lint / test / clean
mage lint
mage test
mage clean
```
## fast start
```bash
@@ -47,8 +79,6 @@ or wait for the release or at least a beta
./build/olcrtc-ui
# or native ( no podman ) linux
GOOS=linux GOARCH=amd64 go build ./cmd/olcrtc