configure-stormux/.includes/gaming.sh

31 lines
1015 B
Bash
Raw Normal View History

#!/bin/bash
# URL from where wine is downloaded, must be i686
2022-02-06 00:01:49 -05:00
wineURL="https://www.playonlinux.com/wine/binaries/phoenicis/upstream-linux-x86/PlayOnLinux-wine-7.1-upstream-linux-x86.tar.gz"
# Install required packages
install_package cabextract box86 dos2unix p7zip unzip xdotool
# Download and install wine
wineFile="$(mktemp)"
wget -O "$wineFile" "$wineURL"
# Create wine directory
sudo mkdir -p /opt/wine
pushd /opt/wine
sudo tar xf "$wineFile"
popd
# Create files and links in /usr/local/bin
sudo mkdir -p /usr/local/bin
2021-10-18 14:50:09 -04:00
echo -e '#!/bin/bash\nsetarch linux32 -L /opt/wine/bin/wine "$@"' | sudo tee /usr/local/bin/wine > /dev/null
sudo chmod 755 /usr/local/bin/wine
2022-02-09 02:34:31 -05:00
for i in wineboot winecfg winepath wineserver ; do
sudo ln -s /opt/wine/bin/"$i" /usr/local/bin/"$i"
sudo chmod 755 /usr/local/bin/"$i"
done
2021-10-18 23:22:19 -04:00
# Install audiogame-manager
sudo wget -O /usr/local/bin/audiogame-manager https://stormgames.wolfe.casa/downloads/audiogame-manager.arm
sudo chmod 755 /usr/local/bin/audiogame-manager
restart