@@ -1,6 +1,6 @@ #!/bin/bash # Date : (2012-03-11 19-24) -# Last revision : (2013-03-25 23-45) +# Last revision : (2013-05-20 13-17) # Wine version used : 1.4-scummvm_support # Distribution used to test : Debian Sid (Unstable) # Author : Pierre Etchemaite pe-pol@concept-micro.com @@ -25,7 +25,7 @@ POL_SetupWindow_presentation "$TITLE" "Revolution Software" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX" -POL_Call POL_GoG_setup "$GOGID" "4650bfa2cbcef03980ba1e0a57f49a7f" +POL_Call POL_GoG_setup "$GOGID" "bc2df19e3ddeacf4528a5ee0f2b32d8d" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
@@ -1,6 +1,6 @@ #!/bin/bash # Date : (2012-03-11 19-24) -# Last revision : (2012-11-11 23-05) +# Last revision : (2013-03-25 23-45) # Wine version used : 1.4-scummvm_support # Distribution used to test : Debian Sid (Unstable) # Author : Pierre Etchemaite pe-pol@concept-micro.com @@ -23,7 +23,7 @@ POL_Debug_Init -POL_SetupWindow_presentation "$TITLE" "Revolution Software" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX" +POL_SetupWindow_presentation "$TITLE" "Revolution Software" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX" POL_Call POL_GoG_setup "$GOGID" "4650bfa2cbcef03980ba1e0a57f49a7f" @@ -48,10 +48,10 @@ native_mt32=true _EOFCFG_ -POL_Shortcut "lure.polcfg" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" +POL_Shortcut "lure.polcfg" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;AdventureGame;" POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/GOG Games/Lure of the Temptress/Manual.pdf" # C:\GOG Games\Lure of the Temptress\solution.txt POL_SetupWindow_Close -exit +exit 0
@@ -1,6 +1,6 @@ #!/bin/bash # Date : (2012-03-11 19-24) -# Last revision : (2012-10-29 02-27) +# Last revision : (2012-11-11 23-05) # Wine version used : 1.4-scummvm_support # Distribution used to test : Debian Sid (Unstable) # Author : Pierre Etchemaite pe-pol@concept-micro.com @@ -25,22 +25,18 @@ POL_SetupWindow_presentation "$TITLE" "Revolution Software" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX" -POL_Call POL_GoG_setup "$GOGID" "dcc8c74c53670f308a37dbead4181965" +POL_Call POL_GoG_setup "$GOGID" "4650bfa2cbcef03980ba1e0a57f49a7f" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" -# Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix -POL_Call POL_Function_SetNativeExtension "pdf" +POL_Call POL_GoG_install -POL_Wine_WaitBefore "$TITLE" - -POL_Wine "$POL_GoG_location" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')" # "SVGA videocard" (?) POL_SetupWindow_VMS "2" -cat <<_EOFCFG_ > "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Lure of the Temptress/lure.polcfg" +cat <<_EOFCFG_ > "$WINEPREFIX/drive_c/GOG Games/Lure of the Temptress/lure.polcfg" [lure] description=Lure of the Temptress (VGA/DOS/English) platform=pc @@ -53,8 +49,8 @@ _EOFCFG_ POL_Shortcut "lure.polcfg" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" -POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Lure of the Temptress/Manual.pdf" -# C:\Program Files\GOG.com\Lure of the Temptress\solution.txt +POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/GOG Games/Lure of the Temptress/Manual.pdf" +# C:\GOG Games\Lure of the Temptress\solution.txt POL_SetupWindow_Close
@@ -1,6 +1,6 @@ #!/bin/bash # Date : (2012-03-11 19-24) -# Last revision : (2012-05-28 17-26) +# Last revision : (2012-10-29 02-27) # Wine version used : 1.4-scummvm_support # Distribution used to test : Debian Sid (Unstable) # Author : Pierre Etchemaite pe-pol@concept-micro.com @@ -15,10 +15,11 @@ PREFIX="LureOfTheTemptress_gog" WORKING_WINE_VERSION="1.4-scummvm_support" -TITLE="Lure of the Temptress (GoG release)" +TITLE="GOG.com - Lure of the Temptress" SHORTCUT_NAME="Lure of the Temptress" POL_SetupWindow_Init +POL_SetupWindow_SetID 1096 POL_Debug_Init
No change were made in the code
@@ -1,7 +1,7 @@ #!/bin/bash # Date : (2012-03-11 19-24) -# Last revision : (2012-05-06 16-46) -# Wine version used : 1.4 +# Last revision : (2012-05-28 17-26) +# Wine version used : 1.4-scummvm_support # Distribution used to test : Debian Sid (Unstable) # Author : Pierre Etchemaite pe-pol@concept-micro.com # Script licence : GPL v.2 @@ -13,16 +13,14 @@ GOGID="lure_of_the_temptress" PREFIX="LureOfTheTemptress_gog" -WORKING_WINE_VERSION="1.4" +WORKING_WINE_VERSION="1.4-scummvm_support" TITLE="Lure of the Temptress (GoG release)" SHORTCUT_NAME="Lure of the Temptress" POL_SetupWindow_Init -POL_Debug_Init -# 4.0.15 needed for complex POL_Shortcut_InsertBeforeWine -POL_RequiredVersion "4.0.15" +POL_Debug_Init POL_SetupWindow_presentation "$TITLE" "Revolution Software" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX" @@ -31,25 +29,29 @@ POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" -POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE" - # Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix POL_Call POL_Function_SetNativeExtension "pdf" -POL_Wine "$POL_GoG_location" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')" +POL_Wine_WaitBefore "$TITLE" -POL_Wine_WaitExit "$TITLE" - -# GoG work! -Set_OS winxp +POL_Wine "$POL_GoG_location" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')" # "SVGA videocard" (?) POL_SetupWindow_VMS "2" -# Doesn't hurt ;) -POL_Wine_reboot - -POL_Shortcut "scummvm.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" '-c "C:\'"$PROGRAMFILES"'\GOG.com\Lure of the Temptress\lure.ini" lure' +cat <<_EOFCFG_ > "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Lure of the Temptress/lure.polcfg" +[lure] +description=Lure of the Temptress (VGA/DOS/English) +platform=pc +gameid=lure +language=en +extra=VGA +multi_midi=true +enable_gs=true +native_mt32=true +_EOFCFG_ + +POL_Shortcut "lure.polcfg" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Lure of the Temptress/Manual.pdf" # C:\Program Files\GOG.com\Lure of the Temptress\solution.txt
@@ -1,6 +1,6 @@
#!/bin/bash
# Date : (2012-03-11 19-24)
-# Last revision : (2012-04-19 00-39)
+# Last revision : (2012-05-06 16-46)
# Wine version used : 1.4
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
@@ -26,10 +26,6 @@
POL_SetupWindow_presentation "$TITLE" "Revolution Software" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
-POL_SetupWindow_question "$(eval_gettext 'This game uses the ScummVM emulator, that also exists natively for Linux.\nUse native version when present?')" "$TITLE"
-NATIVESCUMMVM=''
-[ "$APP_ANSWER" = "TRUE" ] && NATIVESCUMMVM=1
-
POL_Call POL_GoG_setup "$GOGID" "dcc8c74c53670f308a37dbead4181965"
POL_Wine_SelectPrefix "$PREFIX"
@@ -44,20 +40,6 @@
POL_Wine_WaitExit "$TITLE"
-if cd "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Lure of the Temptress/"; then
- # Create setup file for native ScummVM (translating paths)
- perl -ne 'chomp;
- if(/^(.*path)=(.*)/) {
- my($setting, $path)=($1, $2);
- my $unix_path=`winepath -u '"'"'$path'"'"'`;
- chomp $unix_path;
- print "$setting=$unix_path\n";
- }
- else {
- print "$_\n";
- }' < lure.ini > lure-unix.ini
-fi
-
# GoG work!
Set_OS winxp
@@ -67,12 +49,7 @@
# Doesn't hurt ;)
POL_Wine_reboot
-POL_Shortcut "scummvm.exe" "$SHORTCUT_NAME" "" '-c "C:\'"$PROGRAMFILES"'\GOG.com\Lure of the Temptress\lure.ini" lure'
-cp "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Lure of the Temptress/game.ico" "$POL_USER_ROOT/icones/32/$SHORTCUT_NAME"
-if [ -n "$NATIVESCUMMVM" ]; then
- POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" "shopt -s execfail"
- POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" "exec scummvm -c '../lure-unix.ini'"
-fi
+POL_Shortcut "scummvm.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" '-c "C:\'"$PROGRAMFILES"'\GOG.com\Lure of the Temptress\lure.ini" lure'
POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Lure of the Temptress/Manual.pdf"
# C:\Program Files\GOG.com\Lure of the Temptress\solution.txt
No change were made in the code
@@ -1,9 +1,9 @@ #!/bin/bash # Date : (2012-03-11 19-24) -# Last revision : (2012-04-11 21-44) +# Last revision : (2012-04-19 00-39) # Wine version used : 1.4 # Distribution used to test : Debian Sid (Unstable) -# Author : Pierre Etchemaite petchema@concept-micro.com +# Author : Pierre Etchemaite pe-pol@concept-micro.com # Script licence : GPL v.2 # Program licence : Retail # Depend : @@ -26,15 +26,15 @@ POL_SetupWindow_presentation "$TITLE" "Revolution Software" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX" -POL_Wine_SelectPrefix "$PREFIX" -POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" - POL_SetupWindow_question "$(eval_gettext 'This game uses the ScummVM emulator, that also exists natively for Linux.\nUse native version when present?')" "$TITLE" NATIVESCUMMVM='' [ "$APP_ANSWER" = "TRUE" ] && NATIVESCUMMVM=1 POL_Call POL_GoG_setup "$GOGID" "dcc8c74c53670f308a37dbead4181965" +POL_Wine_SelectPrefix "$PREFIX" +POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" + POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE" # Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix
@@ -1,6 +1,6 @@ #!/bin/bash # Date : (2012-03-11 19-24) -# Last revision : (2012-04-07 20-47) +# Last revision : (2012-04-11 21-44) # Wine version used : 1.4 # Distribution used to test : Debian Sid (Unstable) # Author : Pierre Etchemaite petchema@concept-micro.com @@ -8,18 +8,14 @@ # Program licence : Retail # Depend : -# Tested with install archives: -# setup_lure_of_the_temptress.exe 12584641 "dcc8c74c53670f308a37dbead4181965" - [ -z "$PLAYONLINUX" ] && exit 0 source "$PLAYONLINUX/lib/sources" +GOGID="lure_of_the_temptress" PREFIX="LureOfTheTemptress_gog" WORKING_WINE_VERSION="1.4" -INSTALLBIN="setup_lure_of_the_temptress.exe" TITLE="Lure of the Temptress (GoG release)" -URL="http://www.gog.com/en/gamecard/lure_of_the_temptress" SHORTCUT_NAME="Lure of the Temptress" POL_SetupWindow_Init @@ -28,35 +24,23 @@ # 4.0.15 needed for complex POL_Shortcut_InsertBeforeWine POL_RequiredVersion "4.0.15" -POL_SetupWindow_presentation "$TITLE" "Revolution Software" "$URL" "Pierre Etchemaite" "$PREFIX" - -if [ -z "$POL_SELECTED_FILE" ]; then - POL_SetupWindow_question "$(eval_gettext 'Do you want to download $TITLE from GOG.com?')" "$TITLE" - [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL" -fi +POL_SetupWindow_presentation "$TITLE" "Revolution Software" "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX" POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" -if [ -n "$POL_SELECTED_FILE" ]; then - ARCHIVE="$POL_SELECTED_FILE" -else - cd $HOME - POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" - ARCHIVE="$APP_ANSWER" -fi - POL_SetupWindow_question "$(eval_gettext 'This game uses the ScummVM emulator, that also exists natively for Linux.\nUse native version when present?')" "$TITLE" NATIVESCUMMVM='' [ "$APP_ANSWER" = "TRUE" ] && NATIVESCUMMVM=1 +POL_Call POL_GoG_setup "$GOGID" "dcc8c74c53670f308a37dbead4181965" POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE" # Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix POL_Call POL_Function_SetNativeExtension "pdf" -POL_Wine start /unix "$ARCHIVE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')" +POL_Wine "$POL_GoG_location" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')" POL_Wine_WaitExit "$TITLE"
@@ -1,6 +1,6 @@
#!/bin/bash
# Date : (2012-03-11 19-24)
-# Last revision : (2012-03-25 18-34)
+# Last revision : (2012-04-07 20-47)
# Wine version used : 1.4
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite petchema@concept-micro.com
@@ -42,7 +42,7 @@
ARCHIVE="$POL_SELECTED_FILE"
else
cd $HOME
- POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "$INSTALLBIN"
+ POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" ""
ARCHIVE="$APP_ANSWER"
fi
@@ -1,6 +1,6 @@ #!/bin/bash # Date : (2012-03-11 19-24) -# Last revision : (2012-03-11 20-58) +# Last revision : (2012-03-25 18-34) # Wine version used : 1.4 # Distribution used to test : Debian Sid (Unstable) # Author : Pierre Etchemaite petchema@concept-micro.com @@ -30,15 +30,21 @@ POL_SetupWindow_presentation "$TITLE" "Revolution Software" "$URL" "Pierre Etchemaite" "$PREFIX" -POL_SetupWindow_question "$(eval_gettext 'Do you want to download $TITLE from GOG.com?')" "$TITLE" -[ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL" +if [ -z "$POL_SELECTED_FILE" ]; then + POL_SetupWindow_question "$(eval_gettext 'Do you want to download $TITLE from GOG.com?')" "$TITLE" + [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL" +fi POL_Wine_SelectPrefix "$PREFIX" POL_Wine_PrefixCreate "$WORKING_WINE_VERSION" -cd $HOME -POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "$INSTALLBIN" -ARCHIVE="$APP_ANSWER" +if [ -n "$POL_SELECTED_FILE" ]; then + ARCHIVE="$POL_SELECTED_FILE" +else + cd $HOME + POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "$INSTALLBIN" + ARCHIVE="$APP_ANSWER" +fi POL_SetupWindow_question "$(eval_gettext 'This game uses the ScummVM emulator, that also exists natively for Linux.\nUse native version when present?')" "$TITLE" NATIVESCUMMVM=''
@@ -0,0 +1,91 @@
+#!/bin/bash
+# Date : (2012-03-11 19-24)
+# Last revision : (2012-03-11 20-58)
+# Wine version used : 1.4
+# Distribution used to test : Debian Sid (Unstable)
+# Author : Pierre Etchemaite petchema@concept-micro.com
+# Script licence : GPL v.2
+# Program licence : Retail
+# Depend :
+
+# Tested with install archives:
+# setup_lure_of_the_temptress.exe 12584641 "dcc8c74c53670f308a37dbead4181965"
+
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+PREFIX="LureOfTheTemptress_gog"
+WORKING_WINE_VERSION="1.4"
+INSTALLBIN="setup_lure_of_the_temptress.exe"
+
+TITLE="Lure of the Temptress (GoG release)"
+URL="http://www.gog.com/en/gamecard/lure_of_the_temptress"
+SHORTCUT_NAME="Lure of the Temptress"
+
+POL_SetupWindow_Init
+POL_Debug_Init
+
+# 4.0.15 needed for complex POL_Shortcut_InsertBeforeWine
+POL_RequiredVersion "4.0.15"
+
+POL_SetupWindow_presentation "$TITLE" "Revolution Software" "$URL" "Pierre Etchemaite" "$PREFIX"
+
+POL_SetupWindow_question "$(eval_gettext 'Do you want to download $TITLE from GOG.com?')" "$TITLE"
+[ "$APP_ANSWER" = "TRUE" ] && POL_Browser "$URL"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+cd $HOME
+POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "$INSTALLBIN"
+ARCHIVE="$APP_ANSWER"
+
+POL_SetupWindow_question "$(eval_gettext 'This game uses the ScummVM emulator, that also exists natively for Linux.\nUse native version when present?')" "$TITLE"
+NATIVESCUMMVM=''
+[ "$APP_ANSWER" = "TRUE" ] && NATIVESCUMMVM=1
+
+
+POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
+
+# Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix
+POL_Call POL_Function_SetNativeExtension "pdf"
+
+POL_Wine start /unix "$ARCHIVE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"
+
+POL_Wine_WaitExit "$TITLE"
+
+if cd "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Lure of the Temptress/"; then
+ # Create setup file for native ScummVM (translating paths)
+ perl -ne 'chomp;
+ if(/^(.*path)=(.*)/) {
+ my($setting, $path)=($1, $2);
+ my $unix_path=`winepath -u '"'"'$path'"'"'`;
+ chomp $unix_path;
+ print "$setting=$unix_path\n";
+ }
+ else {
+ print "$_\n";
+ }' < lure.ini > lure-unix.ini
+fi
+
+# GoG work!
+Set_OS winxp
+
+# "SVGA videocard" (?)
+POL_SetupWindow_VMS "2"
+
+# Doesn't hurt ;)
+POL_Wine_reboot
+
+POL_Shortcut "scummvm.exe" "$SHORTCUT_NAME" "" '-c "C:\'"$PROGRAMFILES"'\GOG.com\Lure of the Temptress\lure.ini" lure'
+cp "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Lure of the Temptress/game.ico" "$POL_USER_ROOT/icones/32/$SHORTCUT_NAME"
+if [ -n "$NATIVESCUMMVM" ]; then
+ POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" "shopt -s execfail"
+ POL_Shortcut_InsertBeforeWine "$SHORTCUT_NAME" "exec scummvm -c '../lure-unix.ini'"
+fi
+POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Lure of the Temptress/Manual.pdf"
+# C:\Program Files\GOG.com\Lure of the Temptress\solution.txt
+
+POL_SetupWindow_Close
+
+exit