Skip to content

Commit

Permalink
Update setup_giants.sh
Browse files Browse the repository at this point in the history
Added support for Premium Expansion!
  • Loading branch information
Toetje585 authored Nov 14, 2023
1 parent 47b6712 commit e2a7d33
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions build/rootfs/opt/fs22/setup_giants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ else
echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
fi

if [ -f /opt/fs22/dlc/FarmingSimulator22_premiumExpansion_*.exe ]; then
echo -e "${GREEN}INFO: Premium Expansion SETUP FOUND!${NOCOLOR}"
else
echo -e "${YELLOW}WARNING: Premium Expansion not found do you own it and does it exist in the dlc mount path?${NOCOLOR}"
echo -e "${YELLOW}WARNING: If you do not own it ignore this!${NOCOLOR}"
fi

# it's important to check if the config directory exists on the host mount path. If it doesn't exist, create it.

if [ -d /opt/fs22/config/FarmingSimulator2022 ]
Expand Down Expand Up @@ -343,6 +350,17 @@ else
fi
fi

if [ -f ~/.fs22server/drive_c/users/nobody/Documents/My\ Games/FarmingSimulator2022/pdlc/premiumExpansion.dlc ]
then
echo -e "${GREEN}INFO: Premium Expansion already installed!${NOCOLOR}"
else
if [ -f /opt/fs22/dlc/FarmingSimulator22_premiumExpansion_*.exe ]; then
echo -e "${GREEN}INFO: Installing Premium Expansion!${NOCOLOR}"
for i in /opt/fs22/dlc/FarmingSimulator22_premiumExpansion_*.exe; do wine "$i"; done
echo -e "${GREEN}INFO: Premium Expansion is now installed!${NOCOLOR}"
fi
fi

echo -e "${YELLOW}INFO: Checking for updates if you get warning about gpu drivers make sure to click no!${NOCOLOR}"
wine ~/.fs22server/drive_c/Program\ Files\ \(x86\)/Farming\ Simulator\ 2022/FarmingSimulator2022.exe

Expand Down

0 comments on commit e2a7d33

Please sign in to comment.