From 9b88d5d4b6aed98bd25105d7a88d89c7d58138bf Mon Sep 17 00:00:00 2001 From: marqdevx Date: Tue, 17 Oct 2023 10:16:00 +0200 Subject: [PATCH] Add docker utility script --- docker-setup.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docker-setup.sh diff --git a/docker-setup.sh b/docker-setup.sh new file mode 100644 index 00000000..f6ed7c04 --- /dev/null +++ b/docker-setup.sh @@ -0,0 +1,38 @@ +# Script to install needed stuff to compile metamod addon + +# docker pull registry.gitlab.steamos.cloud/steamrt/scout/sdk +# docker run -v D:\repos:/dockerVolume -it + +export HL2SDKCS2='/dockerVolume/mm-cs2-scrim/sdk' +export MMSOURCE_DEV='/dockerVolume/metamod-source' +export CC=clang +export CXX=clang++ + +echo -------------------------------------------------------------------------- +echo Starting steam sniper compilator for metamod +echo + +apt-get update +apt-get install python3-setuptools -y +apt-get install clang -y +apt-get install python3 -y +apt-get install gcc -y + +cd "/dockerVolume/ambuild" +python3 setup.py install + +cd "/dockerVolume/mm-cs2-scrim" +mkdir build +cd build + +python3 ../configure.py --sdks cs2 --targets x86_64 +ambuild + + +# Copy files to the deploy folder +todaysDate=$(date +%d-%b-%H_%M) +#mkdir ../../dockerVolume/$todaysDate +#DEPLOY_FOLDER=../../dockerVolume/$todaysDate + +echo finished +echo $todaysDate \ No newline at end of file