This repository was archived by the owner on Aug 22, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdocker-setup.sh
More file actions
49 lines (36 loc) · 1.14 KB
/
docker-setup.sh
File metadata and controls
49 lines (36 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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 <imageID>
export HL2SDKCS2='/dockerVolume/mm-cs2-scrim/sdk'
export MMSOURCE_DEV='/dockerVolume/metamod-source'
export CC=clang
export CXX=clang++
clear
echo --------------------------------------------------------------------------
echo Starting steam sniper compilator for metamod
echo
if [ "$(which "ambuild")" != "" ];
then
echo "AMBUILD installed"
else
echo "Installing ambuild"
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
echo "AMBUILD Installed"
fi
cd "/dockerVolume/mm-cs2-scrim"
mkdir build
cd build
#python ../configure.py --enable-optimize --symbol-files --sdks cs2
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