From e2a9aaaa24a2e23ac221031ccf3af2705443c8a8 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 3 Sep 2020 12:28:17 -0400 Subject: [PATCH] Added mkwine.sh script for making test bottles. --- audiogame-manager.sh | 8 -------- mkwine.sh | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 8 deletions(-) create mode 100755 mkwine.sh diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 9683077..488a701 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -180,7 +180,6 @@ gameList=( "Bloodshed" "Kitchensinc Games" "Light Cars" - "Rail Racer" "Shades of Doom" "Super Egg Hunt" "Super Liam" @@ -251,13 +250,6 @@ case "${game}" in add_launcher "c:\Program Files\Lighttech Interactive\Light Cars\lightCars.exe" rm -f "$WINEPREFIX/drive_c/Program Files/light cars setup.exe" ;; - "Rail Racer") - install_wine_bottle - wget -O "$WINEPREFIX/drive_c/Program Files/RailRacerDemo10Setup.exe" "https://www.agarchive.net/games/other/RailRacerDemo10Setup.exe" - wine "$WINEPREFIX/drive_c/Program Files/RailRacerDemo10Setup.exe" /silent - #add_launcher "c:\Program Files\" - rm -f "$WINEPREFIX/drive_c/Program Files/RailRacerDemo10Setup.exe" - ;; "Shades of Doom") install_wine_bottle vcrun6 wget -O "$WINEPREFIX/drive_c/Program Files/sod20022.exe" "http://www.gmagames.com/sod20022.exe" diff --git a/mkwine.sh b/mkwine.sh new file mode 100755 index 0000000..9ce4838 --- /dev/null +++ b/mkwine.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + +export WINEARCH=win32 +bottle="${1,,}" +shift +bottle="${bottle//[[:space:]]/-}" +mkdir -p "$HOME/.local/wine/${bottle}" +export WINEPREFIX="$HOME/.local/wine/${bottle}" +# Arguments to the function are dependancies to be installed. +(wine msiexec /i z:/usr/share/wine/mono/$(ls -1 /usr/share/wine/mono/) /silent + wine msiexec /i z:$(ls -1 /usr/share/wine/gecko/*x86.msi) /silent + winetricks -q $@ ${winVer:-winxp} ${winetricksSettings}) | dialog --progressbox "Installing wine bottle, please wait..." -1 -1 + +exit 0