Skip to content

Commit

Permalink
Merge pull request #6 from cdlliuy/dev_updatebuildscript
Browse files Browse the repository at this point in the history
update build-all script to comply to CF plugin naming convention
  • Loading branch information
cdlliuy authored Apr 17, 2018
2 parents c129ba5 + ccc67f6 commit ca05e86
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions scripts/build-all
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ OUT_DIR=$ROOT_DIR/out
build() {
local os=$1
local arch=$2
local postfix=$3

GOOS=$os GOARCH=$arch $ROOT_DIR/scripts/build
nf="ascli-$os-$arch"
nf="ascli.$postfix"
if [ "$os" == "windows" ]; then
nf="$nf.exe"
fi

mv $OUT_DIR/ascli "$OUT_DIR/$nf"
}

build darwin amd64
build linux amd64
build linux 386
build windows amd64
build windows 386
build darwin amd64 osx
build linux amd64 linux64
build linux 386 linux32
build windows amd64 win64
build windows 386 win32

0 comments on commit ca05e86

Please sign in to comment.