mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-02 22:10:26 +08:00
12 lines
306 B
Bash
Executable File
12 lines
306 B
Bash
Executable File
#!/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
|