The forum

[Script] Angry Birds (1)

Author Replies
Dadu042 Wednesday 13 March 2019 at 14:35
Dadu042

I used the online version to make this script, I don't have the CD-ROM (so maybe the installer filename has to be changed).

This game installer (v4.0.0) only work since Wine v4.0.0 (fail with Wine v3.0.5 and previous).

 

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
#!/usr/bin/env playonlinux-bash
# Date : (2019-03-13 14-00)
# Last revision : (2019-03-13 14-00)
# Wine version used : 4.3
# Distribution used to test : Ubuntu 18.04 x64
# Script licence : GPL3
# Program licence : Retail
#
# Playonlinux version used : 4.3.4
#
# Game installer used: v4.0.0 (2014 ?. It works only from Wine v4.0)
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Angry Birds"
PREFIX="angrybirds1"
WORKING_WINE_VERSION="4.3"
AUTHOR="Dadu042"
EDITOR="Rovio"
  
Set_OS win7
  
POL_SetupWindow_Init
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "amd64"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_TmpCreate "$TITLE"
  
###############
# Go          #
###############
  
POL_SetupWindow_InstallMethod "LOCAL,CD"
  
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
        cd "$POL_System_TmpDir"
else
        POL_SetupWindow_cdrom
        POL_SetupWindow_check_cdrom "AB.ico"
        POL_Wine start /unix "$CDROM/AngryBirdsInstaller_4.0.0.exe"
        POL_Wine_WaitExit "AngryBirdsInstaller.exe"
        cd "$POL_System_TmpDir"
fi
  
POL_Shortcut "AngryBirds.exe" "$TITLE" ""
  
POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca@playonlinux.com