Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 87 lines (58 sloc) 2.408 kb
f5565ee Add script for Icewind Dale
Pierre Etchemaite authored
1 #!/bin/bash
2 # Date : (2012-05-13 17-24)
3 # Last revision : (2012-05-13 21-40)
4 # Wine version used : 1.4
5 # Distribution used to test : Debian Sid (Unstable)
6 # Author : Pierre Etchemaite pe-pol@concept-micro.com
7 # Script licence : GPL v.2
8 # Program licence : Retail
9 # Depend :
10
11 [ -z "$PLAYONLINUX" ] && exit 0
12 source "$PLAYONLINUX/lib/sources"
13
14 GOGID="icewind_dale_complete"
15 PREFIX="IcewindDale_gog"
16 WORKING_WINE_VERSION="1.4"
17
18 TITLE="Icewind Dale Complete (GoG release)"
19 SHORTCUT_NAME="Icewind Dale"
20
21 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
22
23 POL_SetupWindow_Init
24 POL_Debug_Init
25
26 POL_SetupWindow_presentation "$TITLE" "Black Isle Studios / Hasbro Inc." "http://www.gog.com/en/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
27
28 POL_Call POL_GoG_setup "$GOGID" "add3f33f3651ea39277806c9a77360c3"
29
30 POL_Wine_SelectPrefix "$PREFIX"
31 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
32
33 POL_SetupWindow_wait "$(eval_gettext 'Please wait while $TITLE is installed.')" "$TITLE"
34
35 # Prevent GoG installer from installing Acrobat Reader or Foxit in each prefix
36 POL_Call POL_Function_SetNativeExtension "pdf"
37
38 POL_Wine "$POL_GoG_location" || POL_Debug_Fatal "$(eval_gettext 'Error while installing archive')"
39
40 POL_Wine_WaitExit "$TITLE"
41
42
43 # GoG work!
44 Set_OS winxp
45
46 POL_SetupWindow_VMS "4"
47
48 # Prevent a lot of fixme:dplay:DP_IF_Receive in logs during game
49 POL_Call POL_Install_directplay
50
51 # Doesn't hurt ;)
52 POL_Wine_reboot
53
54 POL_Shortcut "IDMain.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" ""
55 POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/$PROGRAMFILES/GOG.com/Icewind Dale Complete/Manual.PDF"
56 # C:\Program Files\GOG.com\Icewind Dale Complete\readme.txt
57 # C:\Program Files\GOG.com\Icewind Dale Complete\readme_addon.TXT
58 # C:\Program Files\GOG.com\Icewind Dale Complete\readme_addon2.txt
59
60 POL_SetupWindow_Close
61
62 cat <<_EOF_ > "$POL_USER_ROOT/configurations/configurators/$SHORTCUT_NAME"
63 #!/bin/bash
64 [ -z "\$PLAYONLINUX" ] && exit 0
65 source "\$PLAYONLINUX/lib/sources"
66 export WINEPREFIX="\$POL_USER_ROOT/wineprefix/$PREFIX"
67 export WINEDEBUG="-all"
68
69 POL_LoadVar_PROGRAMFILES
70
71 cd "\$WINEPREFIX/drive_c/\$PROGRAMFILES/GOG.com/Icewind Dale Complete/" || exit 1
72
73 TITLE="$TITLE"
74
75 POL_SetupWindow_Init
76 POL_Debug_Init
77
78 POL_Wine Config.exe
79
80 POL_Call POL_Configurator_runparts
81
82 POL_SetupWindow_Close
83 exit
84 _EOF_
85
86 exit
Something went wrong with that request. Please try again.