Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
Add static build recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
grisu48 committed Feb 13, 2022
1 parent 0c83968 commit be4b562
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit be4b562

Please sign in to comment.