Skip to content

Commit ca05e86

Browse files
authored
Merge pull request #6 from cdlliuy/dev_updatebuildscript
update build-all script to comply to CF plugin naming convention
2 parents c129ba5 + ccc67f6 commit ca05e86

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

scripts/build-all

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@ OUT_DIR=$ROOT_DIR/out
88
build() {
99
local os=$1
1010
local arch=$2
11+
local postfix=$3
1112

1213
GOOS=$os GOARCH=$arch $ROOT_DIR/scripts/build
13-
nf="ascli-$os-$arch"
14+
nf="ascli.$postfix"
1415
if [ "$os" == "windows" ]; then
1516
nf="$nf.exe"
1617
fi
1718

1819
mv $OUT_DIR/ascli "$OUT_DIR/$nf"
1920
}
2021

21-
build darwin amd64
22-
build linux amd64
23-
build linux 386
24-
build windows amd64
25-
build windows 386
22+
build darwin amd64 osx
23+
build linux amd64 linux64
24+
build linux 386 linux32
25+
build windows amd64 win64
26+
build windows 386 win32

0 commit comments

Comments
 (0)