X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=cmd%2Fsafcm-remote%2Fbuild.sh;h=4f102c9ccbc1a66d0fa8dbebc9f1da8f53e0d3ee;hb=ac30b1856db3d63705270ddf26ff0b7b56c9c9c9;hp=404f48faa9ce621dba88341ecd548472fe8f9908;hpb=add02385c9c48e7a3d9405b8023e72611e6d5a8f;p=safcm%2Fsafcm.git diff --git a/cmd/safcm-remote/build.sh b/cmd/safcm-remote/build.sh index 404f48f..4f102c9 100755 --- a/cmd/safcm-remote/build.sh +++ b/cmd/safcm-remote/build.sh @@ -25,10 +25,15 @@ build() { GOOS="$1" GOARCH="$2" go build -o "$dest/$1-$2" } +build_arm() { + GOOS="$1" GOARCH="$2" GOARM="$3" go build -o "$dest/$1-${2}v${3}l" +} + dest=../../remote/helpers mkdir -p "$dest" build linux amd64 +build_arm linux arm 7 # TODO: support more operating systems and architectures