-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdiablo2
65 lines (46 loc) · 1.65 KB
/
diablo2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
# Distribution used to test : Fedora 12
# Depend : ImageMagick, unzip
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
##
TITLE="Diablo II"
PREFIX="DiabloII"
WINEVERSION="1.3.2"
PATCHFILE="D2Patch_113d.exe"
PATCHLINK="http://ftp.blizzard.com/pub/diablo2/patches/PC"
PATCHFILESUM="ce7313b0c35261a2a5f528cd6e2693b5"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Blizzard" "www.blizzard.com" "Tinou" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
if [ "$POL_SELECTED_FILE" ]; then
SetupFile="$POL_SELECTED_FILE"
POL_SetupWindow_wait "$(eval_gettext 'Installing $TITLE')" "$TITLE"
POL_Wine start /unix "$SetupFile"
else
POL_SetupWindow_InstallMethod "CD,LOCAL"
if [ "$INSTALL_METHOD" = "CD" ]; then
POL_Call POL_Wine_InstallCDROM "INSTALL" "w" "install.exe" "installer.exe"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$CDROM_SETUP"
POL_Call POL_Wine_InstallCDROM "PLAYDISC" "w" "d2music.mpq"
POL_Call POL_Wine_InstallCDROM "CINEMATICS" "w" "playd2.mpq"
POL_Call POL_Wine_InstallCDROM "INSTALL" "w" "install.exe" "installer.exe"
POL_Wine_WaitExit "$TITLE"
fi
if [ "$INSTALL_METHOD" = "LOCAL" ]; then
cd "$HOME"
POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
SetupFile="$APP_ANSWER"
POL_SetupWindow_wait "$(eval_gettext 'Installing $TITLE')" "$TITLE"
POL_Wine start /unix "$SetupFile"
fi
fi
POL_Wine_WaitExit
POL_Shortcut "Diablo II.exe" "$TITLE"
POL_Shortcut_QuietDebug "$TITLE"
POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully.')" "$TITLE"
POL_SetupWindow_Close
exit