Files
GS13NG/tools/ci/build_tgui.sh
2020-12-29 11:12:56 +08:00

20 lines
378 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
## Change to project root relative to the script
cd "$(dirname "${0}")/../.."
base_dir="$(pwd)"
## The final authority on what's required to fully build the project
source dependencies.sh
## Setup NVM
if [[ -e ~/.nvm/nvm.sh ]]; then
source ~/.nvm/nvm.sh
nvm use "${NODE_VERSION}"
fi
echo "Building 'tgui'"
cd "${base_dir}/tgui"
bin/tgui --ci