Browse Source

created initial version of the Witcher 2 installation script, update shortcut names for risen 2

Helmut Pozimski 9 years ago
parent
commit
eef30f9759
2 changed files with 51 additions and 3 deletions
  1. 3 3
      risen2.sh
  2. 48 0
      the_witcher_2.sh

+ 3 - 3
risen2.sh

@@ -13,7 +13,7 @@ source "$PLAYONLINUX/lib/sources"
 
 GOGID_BASE="risen_2_dark_waters"
 GOGID_GOLD="risen_2_dark_waters_gold_edition"
-PREFIX="Risen2_gold_gog"
+PREFIX="Risen2_gog"
 WORKING_WINE_VERSION="1.7.20"
 
 TITLE="GOG.com - Risen 2: Dark Waters"
@@ -44,8 +44,8 @@ Set_OS winxp
 
 # Configure the shortcut
 GOGPATH="$GOGROOT/Risen 2 - Dark Waters"
-POL_Shortcut "Risen.exe" "Risen 2" "" "" "Game;"
-POL_Shortcut "Settings.exe" "Risen 2 Settings" "" "" "Game;"
+POL_Shortcut "Risen.exe" "Risen 2: Dark Waters" "" "" "Game;"
+POL_Shortcut "Settings.exe" "Risen 2: Dark Waters Settings" "" "" "Game;"
 
 POL_SetupWindow_Close
 exit 0

+ 48 - 0
the_witcher_2.sh

@@ -0,0 +1,48 @@
+#!/bin/bash
+# Date : (2014-08-20 21:03)
+# Last Revision : (2014-08-i20 21:03)
+# Wine Version used : 1.7.20
+# Distribution used to test : Debian testing/jessie
+# Author: Hoshpak
+# Script license : GPL v2
+# Programm license : Retail
+# Depend :
+
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+GOGID="the_witcher_2"
+PREFIX="Witcher2_gog"
+WORKING_WINE_VERSION="1.7.20"
+
+TITLE="GOG.com - Witcher 2: Assassins of Kings"
+
+POL_SetupWindow_Init
+POL_Deug_Init
+
+POL_SetupWindow_presentation "$TITLE" "CD Projekt RED" "http://www.gog.com/game/$GOGID" "Hoshpak" "$PREFIX"
+
+POL_Call POL_GoG_setup "$GOGID"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+POL_Call POL_GoG_install "/nogui"
+
+POL_Call POL_Install_d3dx9_36
+POL_Call POL_install_d3dx9_43
+
+Set_OS winxp
+
+# Configure the shortcut
+GOGPATH="$GOGROOT/The Witcher 2 Enhanced Edition"
+POL_Shortcut "Launcher.exe" "Witcher 2: Assassins of Kings" "" "" "Game;"
+
+# Language selection for the manual shortcut
+POL_SetupWindow_menu "$(eval_gettext 'What is your preferred language?')" "$(eval_gettext 'Language')" "en: English~fr: French~de: German~it: Italian~es: Spanish~pl: Polish~cz: Czech~hu: Hungarian~jp: Japanese~ru: Russian~tr: Turkish~zh: Chinese" "~"
+MAN_LANG=$(echo "${APP_ANSWER}" | cut -d ':' -f 1)
+
+POL_Shortcut_Document "Witcher 2: Assassins of Kings" "$GOGPATH/manual_$MAN_LANG.pdf"
+
+POL_SetupWindow_Close
+exit 0