Repository navigation
Expand file tree
/
Copy pathplay-on-linux-freeinfantry.sh
More file actions
90 lines (62 loc) · 2.39 KB
/
Copy pathplay-on-linux-freeinfantry.sh
File metadata and controls
90 lines (62 loc) · 2.39 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env playonlinux-bash
# Date : (2022-02-17 07-00)
# Last revision : (2024-02-12 06-21)
# Wine version used : 7.0
# Distribution used to test : Ubuntu 20.04 LTS
# Author : Spiff
# PlayOnLinux : 4.3.4
# Script license : GPL3
# Program license : Retail
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="FreeInfantry"
PREFIX="FreeInfantry"
COMPANY="Free Infantry Group"
DOMAIN="https://www.freeinfantry.com"
TEMPTITLE="$TITLE"
WINEVERSION="7.0"
#POL_GetSetupImages "http://files.playonlinux.com/resources/setups/freeinfantry/top.jpg" "http://files.playonlinux.com/resources/setups/freeinfantry/left.jpg" "$TITLE"
POL_GetSetupImages "http://freeinfantry.com/download/installer-images/linux-pol-top-64x64.png" "http://freeinfantry.com/download/installer-images/linux-pol-left-150x356.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$COMPANY" "$DOMAIN" "Spiff" "$PREFIX"
POL_System_TmpCreate "$PREFIX"
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
POL_SetupWindow_browse "Please select the installation file to run." "$TITLE Installer"
INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
POL_SetupWindow_wait "Downloading installer into a temp directory..." "$TITLE"
cd "$POL_System_TmpDir"
POL_Download "http://freeinfantry.com/download/win/latest/Install-FreeInfantry.exe"
INSTALLER="$POL_System_TmpDir/Install-FreeInfantry.exe"
fi
if (( $(($WINEVERSION + 0)) >= 7.0 )); then
TITLE="$TEMPTITLE (Step 1/1)"
else
TITLE="$TEMPTITLE (Step 1/2)"
POL_SetupWindow_wait "Installing .NET Framework 4.0..." "$TITLE"
POL_Call POL_Install_dotnet40
TITLE="$TEMPTITLE (Step 2/2)"
fi
POL_SetupWindow_wait "Installing FreeInfantry..." "$TITLE"
TITLE="$TEMPTITLE"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
# Run the installer NOT silently since you chose local and most likely will want to change settings
POL_Wine "$INSTALLER" /ddraw=opengl
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
# Run the installer silently (/S) and override the ddraw renderer to be opengl
POL_Wine "$INSTALLER" /ddraw=opengl /S
fi
# Tell WINE we are overriding the ddraw dll
POL_Wine_OverrideDLL "native, builtin" "ddraw"
POL_Shortcut "InfantryLauncher.exe" "$TITLE" "" "" "Game;MultiplayerGame;"
POL_System_TmpDelete
POL_SetupWindow_Close
exit