From be4b562117c71873c7cc638df66d8829e154979c Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 13 Feb 2022 11:20:58 +0100 Subject: [PATCH] Add static build recipe --- Makefile | 3 +++ README.md | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 44abc2b..b2ded69 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,9 @@ all: orion orion: cmd/orion/orion.go cmd/orion/gemini.go cmd/orion/config.go go build -o $@ $^ +static: cmd/orion/orion.go cmd/orion/gemini.go cmd/orion/config.go + CGO_ENABLED=0 go build -o orion $^ + cert: openssl genrsa -out orion.key 2048 openssl req -x509 -nodes -days 3650 -key orion.key -out orion.crt diff --git a/README.md b/README.md index 3e5b3b1..9b94737 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,8 @@ Requirements: `go >= 1.14` Compile the `orion` binary - make + make # Default build + make static # Build static binary Then edit the configuration file `orion.conf` to your wishes and launch the program