TeaSpeak-Client/jenkins/deploy_build.sh

22 lines
392 B
Bash
Raw Normal View History

2019-07-03 07:16:38 -04:00
#!/usr/bin/env bash
cd "../$(dirname $0)"
if [[ "${teaclient_deploy_secret}" == "" ]]; then
echo "Missing deploy secret!"
exit 1
fi
if [[ $# -lt 1 ]]; then
echo "Missing build channel!"
exit 1
fi
npm run build-linux-64
if [[ $? -ne 0 ]]; then
echo "Failed to build project"
fi
npm run package-linux-64 $1
if [[ $? -ne 0 ]]; then
echo "Failed to package project"
fi