From: Simon Ruderich Date: Sun, 18 Oct 2026 11:58:32 +0000 (+0200) Subject: Add static binaries X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=9475a4766f4175f2fb1c5ecb9982ec86fc4ddc8d;p=sss-vault%2Fsss-vault.git Add static binaries Built on Debian/sid with Go version go1.27.2 linux/amd64. --- diff --git a/Makefile b/Makefile index 8a17419..76144d6 100644 --- a/Makefile +++ b/Makefile @@ -13,4 +13,8 @@ code.txt: main.go shamir/shamir.go echo; \ done > $@ -.PHONY: all +static: + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOAMD64=v1 go build -trimpath -buildvcs=false -o static/sss-vault_linux_amd64 + CGO_ENABLED=0 GOOS=windows GOARCH=amd64 GOAMD64=v1 go build -trimpath -buildvcs=false -o static/sss-vault_windows_amd64.exe + +.PHONY: all static diff --git a/README.adoc b/README.adoc index daf80ac..439d843 100644 --- a/README.adoc +++ b/README.adoc @@ -10,6 +10,9 @@ The actual implementation is copied from the shamir/ directory of The code in shamir/ is taken from {0c6c13dd38}[0c6c13dd38 (license: update headers to IBM Corp. (#10229) (#10233), 2025-10-21)]. +The static/ directory contains static binaries for Linux/amd64 and +Windows/amd64 in case no Go compiler is available. + == Limitations diff --git a/static/sss-vault_linux_amd64 b/static/sss-vault_linux_amd64 new file mode 100755 index 0000000..9fee3d4 Binary files /dev/null and b/static/sss-vault_linux_amd64 differ diff --git a/static/sss-vault_windows_amd64.exe b/static/sss-vault_windows_amd64.exe new file mode 100755 index 0000000..b43336a Binary files /dev/null and b/static/sss-vault_windows_amd64.exe differ