-
Notifications
You must be signed in to change notification settings - Fork 11
/
return_to_castle_wolfenstein
56 lines (39 loc) · 1.31 KB
/
return_to_castle_wolfenstein
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
#!/bin/bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
##
TITLE="Return To Castle Wolfenstein"
PREFIX="RTCW"
WINEVERSION="1.5.29"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "id" "www.idsoftware.com/games/wolfenstein" "Matt Caron" "$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 "1" "w" "Setup.exe"
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$CDROM_SETUP"
POL_Call POL_Wine_InstallCDROM "2" "w" "Launch.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 "wolf.exe" "$TITLE"
POL_Shortcut_QuietDebug "$TITLE"
POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully.')" "$TITLE"
POL_SetupWindow_Close
exit