mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 06:40:26 +08:00
12 lines
306 B
Bash
12 lines
306 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
ROOT=`dirname $0`
|
||
|
|
|
||
|
|
# building installer
|
||
|
|
architects=( "amd64" "386" )
|
||
|
|
for arch in "${architects[@]}"
|
||
|
|
do
|
||
|
|
# TODO support arm, mips ...
|
||
|
|
env GOOS=linux GOARCH=${arch} go build --ldflags="-s -w" -o $ROOT/installers/installer-helper-linux-${arch} $ROOT/../cmd/installer-helper/main.go
|
||
|
|
done
|