add pre-fleet to binary bundle and fix typo

This commit is contained in:
Victor Vrantchan 2018-04-16 17:47:10 -04:00
parent bb6f3af190
commit 2ded63ea03

View File

@ -202,11 +202,11 @@ demo-restore:
-h ${MYSQL_PORT_3306_TCP_ADDR} kolide \ -h ${MYSQL_PORT_3306_TCP_ADDR} kolide \
< ./tools/app/demo.sql < ./tools/app/demo.sql
binary-bundle: generate binary-bundle: generate .pre-fleet
rm -rf build/binary-bundle rm -rf build/binary-bundle
mkdir -p build/binary-bundle/linux mkdir -p build/binary-bundle/linux
mkdir -p build/binary-bundle/darwin mkdir -p build/binary-bundle/darwin
GOOS=linux go build -i -o build/binary-bundle/linux/${OUTPUT}_linux_amd64 -ldflags ${KIT_VERSION} ./cmd/fleet GOOS=linux go build -i -o build/binary-bundle/linux/${OUTPUT}_linux_amd64 -ldflags ${KIT_VERSION} ./cmd/fleet
GOOS=darwin go build -i -o build/binary-bundle/darwin/${OUTPUT}_darwin_amd64 -ldflags ${KIT_VERSION} ./cmd/fleet GOOS=darwin go build -i -o build/binary-bundle/darwin/${OUTPUT}_darwin_amd64 -ldflags ${KIT_VERSION} ./cmd/fleet
cd build/binary-bundle && zip -r "fleet_${VERSION}.zip" darwin/ linux/ cd build/binary-bundle && zip -r "fleet_${VERSION}.zip" darwin/ linux/
cp build/binary-bundle/fleet_${VERSION}.zip build/binary-bundle/fleet_lastest.zip cp build/binary-bundle/fleet_${VERSION}.zip build/binary-bundle/fleet_latest.zip