-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoneshot_linux.sh.in
51 lines (40 loc) · 1.11 KB
/
oneshot_linux.sh.in
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
50
51
# Check for root privileges
if [[ $(id -u) != 0 ]]; then
echo "* This script is meant to be run as root. Do sudo sh oneshot_linux.sh"
exit
fi
cd ~
echo "* Installing dependencies."
sudo apt update
sudo apt install ruby gcc make cmake bison m4 doxygen python3 python3-pip
echo "* Installing conan."
sudo pip install conan
echo "* Configuring conan."
conan
echo "* Cloning ModShot."
git clone {MODSHOT_URL} ModShot
echo "* Cloning mod."
git clone {OSMOD_URL} Mod
echo "* Cloning zimberzimber's OneShot Mod Util."
git clone https://github.com/zimberzimber/oneshot-mod-util
echo "* Building ModShot - DRM-free."
cd ModShot
mkdir build
cd build
conan install .. --build=missing
conan build ..
mkdir ../../ModShotBuild
mkdir ../../ModShotBuild/Steam
mkdir ../../ModShotBuild/DRMFree
cp bin/ ../../ModShotBuild/DRMFree
echo "* Building ModShot - Steam version."
rm -rf bin
conan install .. --build=missing -o platform=steam
conan build ..
cp bin/ ../../ModShotBuild/Steam
echo "* Preparing mod for release."
cd ../../
cd oneshot-mod-util
ruby "main executor.rb" "../Mod"
cd out
tar cvf linux-oneshot-mod-release.tar.gz Steam itch