2018-05-15 23:04:52 +02:00
|
|
|
#!/bin/bash -eu
|
2017-06-18 15:40:38 +02:00
|
|
|
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
|
2020-04-13 16:10:09 +02:00
|
|
|
export GO111MODULE=on
|
2017-06-18 15:40:38 +02:00
|
|
|
B="go build -tags without_openssl"
|
|
|
|
|
2018-05-15 23:04:52 +02:00
|
|
|
set -x
|
|
|
|
|
2020-02-29 21:51:34 +01:00
|
|
|
# See https://github.com/golang/go/wiki/GoArm
|
|
|
|
GOOS=linux GOARCH=arm GOARM=7 $B
|
2020-04-13 16:10:09 +02:00
|
|
|
GOOS=linux GOARCH=arm64 $B
|
2020-02-29 21:51:34 +01:00
|
|
|
|
|
|
|
# MacOS
|
2017-06-18 15:40:38 +02:00
|
|
|
GOOS=darwin GOARCH=amd64 $B
|
|
|
|
|
|
|
|
# The cross-built binary is not useful on the compile host.
|
|
|
|
rm gocryptfs
|