POL_GoG_setup

Informations

Creator Message
Quentin PÂRIS Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 1371588
Wine: System

Feedbacks

Description

Allow to select a GOG.com installer to run, locally or even downloaded from their website, if the PlayOnLinux version is sufficient to support this feature.

Parameters accepted are exactly the same as the ones for POL_GoG_download, see this function.

In return, the function assigns $POL_GoG_location with the full path of the installer.

Source code

#!/bin/bash

# 1 : Game to download
# 2.. : Md5sum(s) of piece(s)

if [ "$POL_SELECTED_FILE" ]; then
        POL_Debug_Message "Using selected file"
        POL_GoG_location="$POL_SELECTED_FILE"
else
        INSTALL_METHOD_BACK="$INSTALL_METHOD"
        
    BUG_4182="y"
        if [ -z "$BUG_4182" -a -n "$POL_WGET" ]; then # PlayOnLinux can understand GoG_Download
                POL_Debug_Message "PlayOnLinux can understand GoG_Download"
                POL_SetupWindow_InstallMethod LOCAL,DOWNLOAD
        else
                POL_Debug_Message "PlayOnLinux do not understand GoG_Download"
                INSTALL_METHOD="LOCAL"
                POL_SetupWindow_question "$(eval_gettext 'Do you want to download $TITLE from GOG.com?')" "$TITLE"
                [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "http://www.gog.com/gamecard/$GOGID"
        fi

        POL_Debug_Message "Install method $INSTALL_METHOD"

        if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
                POL_Call POL_GoG_download "$@"
        fi

        if [ "$INSTALL_METHOD" = "LOCAL" ]; then
                cd "$HOME"
                POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
                POL_GoG_location="$APP_ANSWER"
        fi
        INSTALL_METHOD="$INSTALL_METHOD_BACK"
fi

Contributions

Filters:

Contribute
Member Message
petch Wednesday 17 February 2016 at 20:05
petch

Information

This update has been approved by the team.

Message

Reenabling GOG download, let's check if bug #4182 is fixed!

Differences

@@ -9,7 +9,7 @@
 else
 	INSTALL_METHOD_BACK="$INSTALL_METHOD"
 	
-    #BUG_4182="y"
+    BUG_4182="y"
 	if [ -z "$BUG_4182" -a -n "$POL_WGET" ]; then # PlayOnLinux can understand GoG_Download
 		POL_Debug_Message "PlayOnLinux can understand GoG_Download"
 		POL_SetupWindow_InstallMethod LOCAL,DOWNLOAD

New source code

#!/bin/bash

# 1 : Game to download
# 2.. : Md5sum(s) of piece(s)

if [ "$POL_SELECTED_FILE" ]; then
        POL_Debug_Message "Using selected file"
        POL_GoG_location="$POL_SELECTED_FILE"
else
        INSTALL_METHOD_BACK="$INSTALL_METHOD"
        
    BUG_4182="y"
        if [ -z "$BUG_4182" -a -n "$POL_WGET" ]; then # PlayOnLinux can understand GoG_Download
                POL_Debug_Message "PlayOnLinux can understand GoG_Download"
                POL_SetupWindow_InstallMethod LOCAL,DOWNLOAD
        else
                POL_Debug_Message "PlayOnLinux do not understand GoG_Download"
                INSTALL_METHOD="LOCAL"
                POL_SetupWindow_question "$(eval_gettext 'Do you want to download $TITLE from GOG.com?')" "$TITLE"
                [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "http://www.gog.com/gamecard/$GOGID"
        fi

        POL_Debug_Message "Install method $INSTALL_METHOD"

        if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
                POL_Call POL_GoG_download "$@"
        fi

        if [ "$INSTALL_METHOD" = "LOCAL" ]; then
                cd "$HOME"
                POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
                POL_GoG_location="$APP_ANSWER"
        fi
        INSTALL_METHOD="$INSTALL_METHOD_BACK"
fi

Replies

Edited by Tinou

petch Thursday 5 February 2015 at 21:52
petch

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Download broken in ages, disabling it

http://www.playonmac.com/en/issue-4182.html

Differences

@@ -8,8 +8,9 @@
 	POL_GoG_location="$POL_SELECTED_FILE"
 else
 	INSTALL_METHOD_BACK="$INSTALL_METHOD"
-
-	if [ -n "$POL_WGET" ]; then # PlayOnLinux can understand GoG_Download
+	
+    BUG_4182="y"
+	if [ -z "$BUG_4182" -a -n "$POL_WGET" ]; then # PlayOnLinux can understand GoG_Download
 		POL_Debug_Message "PlayOnLinux can understand GoG_Download"
 		POL_SetupWindow_InstallMethod LOCAL,DOWNLOAD
 	else

New source code

#!/bin/bash

# 1 : Game to download
# 2.. : Md5sum(s) of piece(s)

if [ "$POL_SELECTED_FILE" ]; then
        POL_Debug_Message "Using selected file"
        POL_GoG_location="$POL_SELECTED_FILE"
else
        INSTALL_METHOD_BACK="$INSTALL_METHOD"
        
    BUG_4182="y"
        if [ -z "$BUG_4182" -a -n "$POL_WGET" ]; then # PlayOnLinux can understand GoG_Download
                POL_Debug_Message "PlayOnLinux can understand GoG_Download"
                POL_SetupWindow_InstallMethod LOCAL,DOWNLOAD
        else
                POL_Debug_Message "PlayOnLinux do not understand GoG_Download"
                INSTALL_METHOD="LOCAL"
                POL_SetupWindow_question "$(eval_gettext 'Do you want to download $TITLE from GOG.com?')" "$TITLE"
                [ "$APP_ANSWER" = "TRUE" ] && POL_Browser "http://www.gog.com/gamecard/$GOGID"
        fi

        POL_Debug_Message "Install method $INSTALL_METHOD"

        if [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
                POL_Call POL_GoG_download "$@"
        fi

        if [ "$INSTALL_METHOD" = "LOCAL" ]; then
                cd "$HOME"
                POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE" "" "Windows Executables (*.exe)|*.exe;*.EXE"
                POL_GoG_location="$APP_ANSWER"
        fi
        INSTALL_METHOD="$INSTALL_METHOD_BACK"
fi

Replies