This repository was archived by the owner on Feb 10, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup_linuxmod_nfs-heat.sh
More file actions
executable file
·40 lines (29 loc) · 1.62 KB
/
setup_linuxmod_nfs-heat.sh
File metadata and controls
executable file
·40 lines (29 loc) · 1.62 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
#!/bin/sh
FROSTY_PROFILE_PATH="ModData/Editor"
MODFOLDER="LinuxMod" #if you change this, make sure to also alter runMod.cmd
BCRYPT="bcrypt.dll"
#cd to script folder
cd -P -- "$(dirname -- "$0")"
if [ ! -d "$FROSTY_PROFILE_PATH" ]; then
>&2 echo "Could not find Frosty profile ($FROSTY_PROFILE_PATH), modify this script to change the FROSTY_PROFILE_PATH"
exit 1
fi
#Frosty likes to delete any file with the same bytes as "bcrypt.dll" when launching
if [ -e "$BCRYPT" ]; then
chmod 555 "$BCRYPT" #read+execute
else
>&2 echo "!! Failed to find $BCRYPT - Frosty has likely deleted it !!"
>&2 echo "Copy $BCRYPT back into this folder and rerun this script"
exit 1
fi
rm -rf "$MODFOLDER"
mkdir "$MODFOLDER"
#all folders/files in the $MODFOLDER will be lowercase for ease and for parity with Frosty - Proton/Wine has no issue reading case-insensitive paths
ln -sr ./Data "$MODFOLDER/data"
cp -r "$FROSTY_PROFILE_PATH/patch" "$MODFOLDER"
ln -sr ./Patch/Win32/configurations/superbundleinstallpackage/* "$MODFOLDER/patch/win32/configurations/superbundleinstallpackage/" 2>&1 | grep -v "File exists"
ln -sr ./Patch/Win32/configurations/superbundleinstallpackage2/* "$MODFOLDER/patch/win32/configurations/superbundleinstallpackage2/" 2>&1 | grep -v "File exists"
ln -sr ./Patch/Win32/levels/frontend/* "$MODFOLDER/patch/win32/levels/frontend/" 2>&1 | grep -v "File exists"
ln -sr ./Patch/Win32/levels/mainlevel/* "$MODFOLDER/patch/win32/levels/mainlevel/" 2>&1 | grep -v "File exists"
ln -sr ./Patch/Win32/loc/* "$MODFOLDER/patch/win32/loc/" 2>&1 | grep -v "File exists"
ln -sr ./Patch/Win32/* "$MODFOLDER/patch/win32/" 2>&1 | grep -v "File exists"