​git lfs install
echo "Downloading source code"
git clone https://gitea.wildfiregames.com/0ad/0ad.git
echo "Code downloaded"
​cd 0ad
echo "Setting up Python Environment"
python -m virtualenv 0ad_build --python=python3.10
source 0ad_build/bin/activate
echo "Building source libraries"
​./libraries/build-source-libs.sh --with-system-cxxtest -j$(nproc)
echo "Building workspaces"
./build/workspaces/update-workspaces.sh --with-system-cxxtest -j$(nproc)
cd /build/workspaces/gcc/
echo "Making final files"
make
echo "Build finished" 
