POL_GoG_setup

Informatie

Creator Bericht
Quentin PÂRIS
Admin

Information

This installer has been approved by the team.

Informatie

Platforms:
Downloads: 1081323
Wine: System

Feedbacks

Omschrijving

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.

Broncode

#!/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 Bericht
petch Woensdag 17 Februari 2016 om 20:05
petch
Developer

Information

This update has been approved by the team.

Bericht

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

Antwoorden

Aangepast door Tinou

petch Donderdag 5 Februari 2015 om 21:52
petch
Developer

Warning

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

Bericht

Download broken in ages, disabling it

http://www.playonlinux.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

Antwoorden