build.sh 343 Bytes
Newer Older
Michael Yang's avatar
Michael Yang committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -eu

usage() {
    echo "usage: $(basename $0) VERSION"
    exit 1
}

[ "$#" -eq 1 ] || usage

export VERSION="$1"

# build universal MacOS binary
sh $(dirname $0)/build_darwin.sh

# # build arm64 and amd64 Linux binaries
sh $(dirname $0)/build_linux.sh

# # build arm64 and amd64 Docker images
sh $(dirname $0)/build_docker.sh