forked from mattcaron/playonlinux
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy patharma_cold_war_assault-gog
68 lines (47 loc) · 1.7 KB
/
arma_cold_war_assault-gog
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
66
67
68
#!/usr/bin/env playonlinux-bash
# Date : (2012-01-09 22-00)
# Last revision : (2013-10-30 19-57)
# Wine version used : 1.4.1
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite [email protected]
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
# Tested with install archives:
# setup_arma_cold_war_assault.exe 444364681 "299f5cb319d023b502937a10fc21fc83"
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
GOGID="arma_cold_war_assault"
PREFIX="ColdWarAssault_gog"
WORKING_WINE_VERSION="1.4.1"
TITLE="GOG.com - Arma: Cold War Assault"
SHORTCUT_NAME="Arma: Cold War Assault"
POL_SetupWindow_Init
POL_SetupWindow_SetID 1040
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Bohemia Interactive Studio" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" "0c4aceb672ef1a11b85853c2752e159b"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Call POL_GoG_install
# GoG work!
Set_OS winxp
POL_SetupWindow_VMS "16"
# Doesn't hurt ;)
POL_Wine_reboot
POL_Shortcut "ColdWarAssault.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;ActionGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Arma Cold War Assault/manual.pdf"
# C:\GOG Games\Arma Cold War Assault\readme.txt
POL_SetupWindow_Close
cat <<_EOF_ > "$POL_USER_ROOT/configurations/configurators/$SHORTCUT_NAME"
#!/usr/bin/env playonlinux-bash
[ -z "\$PLAYONLINUX" ] && exit 0
source "\$PLAYONLINUX/lib/sources"
export WINEPREFIX="\$POL_USER_ROOT/wineprefix/$PREFIX"
export WINEDEBUG=""
POL_LoadVar_PROGRAMFILES
cd "$GOGROOT/Arma Cold War Assault/" || exit 1
POL_Wine ColdWarAssaultPreferences.exe
exit 0
_EOF_
exit 0