22 lines
400 B
Raw Normal View History

#!/bin/bash -eu
cd "$(dirname "$0")"
2020-04-13 16:10:09 +02:00
export GO111MODULE=on
B="go build -tags without_openssl"
set -x
# See
GOOS=linux GOARCH=arm GOARM=7 $B
2020-04-13 16:10:09 +02:00
GOOS=linux GOARCH=arm64 $B
# MacOS on Intel
GOOS=darwin GOARCH=amd64 $B
# MacOS on Apple Silicon M1
GOOS=darwin GOARCH=arm64 $B
# The cross-built binary is not useful on the compile host.
rm gocryptfs