Fix some problem on NPX4CS_Win_Proton.sh

Fixes:
+ wrong proton
+ wineprefix absolute path
+ still crap
This commit is contained in:
tretrauit 2021-06-22 15:22:50 +00:00
parent b3ea549ecb
commit 1e715272f9

View File

@ -29,10 +29,11 @@ for idx in ${!PROTONS[@]}; do
done done
echo "Select: " echo "Select: "
read PROTON_SEL_INT read PROTON_SEL_INT
PROTON_SEL=${{PROTONS[PROTON_SEL_INT]}%?} PROTON_SEL_slash=${PROTONS[PROTON_SEL_INT]}
PROTON_SEL=${PROTON_SEL_slash%?}
echo "Selected $PROTON_SEL, processing..." echo "Selected $PROTON_SEL, processing..."
echo "Creating NotParadoxLauncher script..." echo "Creating NotParadoxLauncher script..."
echo "WINEPREFIX='./../../compatdata/255710/pfx' $PROTON_SEL/files/bin/wine ./NotParadoxLauncher/bootstrapper-v2.exe" > launcher.sh PREFIXPATH=$(realpath "./../../compatdata/255710/pfx")
echo "WINEPREFIX=\"$PREFIXPATH\" \"$PROTON_SEL/files/bin/wine\" ./NotParadoxLauncher/bootstrapper-v2.exe" > launcher.sh
chmod +x launcher.sh chmod +x launcher.sh
echo "Done! You can launch NotParadoxLauncher by doing './launcher.sh' in Cities: Skylines dir." echo "Done! You can launch NotParadoxLauncher by doing './launcher.sh' in Cities: Skylines dir."
EOF