]> ruderich.org/simon Gitweb - sss-vault/sss-vault.git/commitdiff
Add static binaries
authorSimon Ruderich <simon@ruderich.org>
Sun, 18 Oct 2026 11:58:32 +0000 (13:58 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 18 Oct 2026 11:58:32 +0000 (13:58 +0200)
Built on Debian/sid with Go version go1.27.2 linux/amd64.

Makefile
README.adoc
static/sss-vault_linux_amd64 [new file with mode: 0755]
static/sss-vault_windows_amd64.exe [new file with mode: 0755]

index 8a1741987a977d9aef63f6bf569b15ebd17da501..76144d6e028cd180b9be116bc50b0ea0d29f13aa 100644 (file)
--- 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
index daf80acc779364d263a4392fb1bfb0d4033105db..439d84362637b7889501bb47c67ec5c28f10a557 100644 (file)
@@ -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 (executable)
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 (executable)
index 0000000..b43336a
Binary files /dev/null and b/static/sss-vault_windows_amd64.exe differ