2020-01-24 13:39:43 -05:00
|
|
|
#!/bin/bash
|
2019-07-17 13:37:18 -04:00
|
|
|
|
|
|
|
BUILD_PATH=$1
|
2020-01-24 13:39:43 -05:00
|
|
|
if [[ -z "${BUILD_PATH}" ]]; then
|
2019-07-17 13:37:18 -04:00
|
|
|
echo "Missing versions path!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-04-16 08:52:08 -04:00
|
|
|
rm buildVersion.txt
|
|
|
|
cp env/buildVersion.txt .
|
2020-04-15 09:14:00 -04:00
|
|
|
rm -r env
|
2020-04-16 08:52:08 -04:00
|
|
|
mkdir env
|
|
|
|
cd env
|
2020-12-02 17:40:36 -05:00
|
|
|
|
2020-04-15 09:14:00 -04:00
|
|
|
[[ $? -ne 0 ]] && {
|
|
|
|
echo "Failed to create the env"
|
|
|
|
exit 1
|
|
|
|
}
|
2020-04-16 08:52:08 -04:00
|
|
|
cp -rf ../../../git-teaspeak/default_files/{certs,commanddocs,geoloc,resources,*.sh} .
|
2020-04-15 09:14:00 -04:00
|
|
|
[[ $? -ne 0 ]] && {
|
|
|
|
echo "Failed to copy env"
|
|
|
|
exit 1
|
|
|
|
}
|
2020-04-15 09:56:16 -04:00
|
|
|
|
2020-04-18 09:24:01 -04:00
|
|
|
cp -rf ../../../music/bin/providers .
|
2020-04-15 09:56:16 -04:00
|
|
|
[[ $? -ne 0 ]] && {
|
|
|
|
echo "Failed to copy providers"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
#
|
|
|
|
cp ../../environment/TeaSpeakServer .
|
2020-04-15 09:16:42 -04:00
|
|
|
[[ $? -ne 0 ]] && {
|
|
|
|
echo "Failed to copy server"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
cd ..
|
2020-04-16 08:52:08 -04:00
|
|
|
mv buildVersion.txt env/buildVersion.txt
|
|
|
|
[[ $? -ne 0 ]] && {
|
|
|
|
echo "Failed to move the build version back"
|
|
|
|
exit 1
|
|
|
|
}
|
2020-04-15 09:14:00 -04:00
|
|
|
|
2020-01-24 13:39:43 -05:00
|
|
|
./generate_version.sh "${BUILD_PATH}" || {
|
|
|
|
echo "Failed to generate version! ($?)"
|
2019-07-17 13:37:18 -04:00
|
|
|
exit 1
|
2020-01-24 13:39:43 -05:00
|
|
|
}
|
2019-07-17 13:37:18 -04:00
|
|
|
|
2020-01-24 13:39:43 -05:00
|
|
|
./generate_libraries.sh || {
|
|
|
|
echo "Failed to generate libraries! ($?)"
|
2019-07-17 13:37:18 -04:00
|
|
|
exit 1
|
2020-01-24 13:39:43 -05:00
|
|
|
}
|
|
|
|
|
2020-12-02 17:40:36 -05:00
|
|
|
|
|
|
|
./make_symbol.sh || {
|
|
|
|
echo "Failed to generate debug symbols"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2020-01-24 13:39:43 -05:00
|
|
|
./package_server.sh "${BUILD_PATH}" || {
|
|
|
|
echo "Failed to package server! ($?)"
|
|
|
|
exit 1
|
|
|
|
}
|
2019-07-17 13:37:18 -04:00
|
|
|
|
2020-01-24 13:39:43 -05:00
|
|
|
./deploy_build.sh "${BUILD_PATH}" || {
|
|
|
|
echo "Failed to deploy package! ($?)"
|
2019-07-17 13:37:18 -04:00
|
|
|
exit 1
|
2020-04-16 08:52:08 -04:00
|
|
|
}
|