POL_GoG_setup

Informations

Créateur Messages
Quentin PÂRIS Anonymous

Information

Cet installateur a été accepté par l'équipe.

Informations

Plate-formes :
Téléchargements : 1394110
Wine: System

Retours d'expérience

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.

Code source

#!/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:

Contribuer
Membre Messages
petch Mercredi 17 Février 2016 à 20:05
petch

Information

Cette mise à jour a été acceptée par l'équipe

Messages

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

Nouveau code source

#!/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

Réponses

Edité par Tinou

petch Jeudi 5 Février 2015 à 21:52
petch

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

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

Nouveau code source

#!/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

Réponses

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-notice@playonlinux.com