aboutsummaryrefslogtreecommitdiff
path: root/crossbuild.bash
diff options
context:
space:
mode:
Diffstat (limited to 'crossbuild.bash')
-rwxr-xr-xcrossbuild.bash12
1 files changed, 12 insertions, 0 deletions
diff --git a/crossbuild.bash b/crossbuild.bash
new file mode 100755
index 0000000..a33cb05
--- /dev/null
+++ b/crossbuild.bash
@@ -0,0 +1,12 @@
+#!/bin/bash -eux
+
+cd "$(dirname "$0")"
+
+B="go build -tags without_openssl"
+
+GOOS=linux GOARCH=arm $B
+GOOS=linux GOARCH=arm64 $B
+GOOS=darwin GOARCH=amd64 $B
+
+# The cross-built binary is not useful on the compile host.
+rm gocryptfs