GOG.com Downloader

Informations

Creator Message
RobLoach

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

The fastest and most reliable way to download games off your
GOG.com shelf. Now even better with sweet new features.

Source code

                

Contributions

Filters:

Contribute
Member Message
RobLoach Saturday 10 January 2015 at 23:33
RobLoach

Warning

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

Message

Can't find custom attr constructor image: C:\Program Files\GOG.com\GOG.com Downloader.exe mtoken: 0x0a00000e
* Assertion at ../../../mono/mono/metadata/class.c:5701, condition `!mono_loader_get_last_error ()' not met
 
err:mscoree:expect_no_runtimes Process exited with a Mono runtime loaded.

Differences

@@ -0,0 +1,61 @@
+#!/bin/bash
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+# Configuration
+TITLE="GOG.com Downloader"
+WEBSITE="http://www.gog.com/downloader"
+DEVELOPER="GOG.com"
+AUTHOR="Rob Loach"
+PREFIX="gog_downloader"
+WINE_VERSION="1.7.33"
+DOWNLOAD="http://static.gog.com/download/d3/stable/Setup_Downloader_3.6.0_stable.exe"
+DOWNLOAD_MD5="70f0841a3bc6059c0b7e21df5bc4e38d"
+DOWNLOAD_SETUP="Setup_Downloader_3.6.0_stable.exe"
+SHORTCUT="GOG.com Downloader.exe"
+
+# Start up PlayOnLinux
+POL_SetupWindow_Init
+POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$WEBSITE" "$AUTHOR" "$PREFIX"
+
+# Create the Wine Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WINE_VERSION"
+
+# Dependencies
+POL_Install_dotnet40
+POL_Install_mono210
+
+# Select the installation method
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+  # Select and run the file
+  POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
+  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
+  POL_Wine_WaitBefore "$TITLE"
+  POL_Wine start /unix "$APP_ANSWER"
+  POL_Wine_WaitExit "$TITLE"
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+  # Create a temporary directory
+  POL_System_TmpCreate "$PREFIX"
+  cd "$POL_System_TmpDir"
+
+  # Download the program
+  POL_Download "$DOWNLOAD" "$DOWNLOAD_MD5"
+  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
+
+  # Run the setup
+  POL_Wine_WaitBefore "$TITLE"
+  POL_Wine start /unix "$POL_System_TmpDir/$DOWNLOAD_SETUP"
+  POL_Wine_WaitExit "$TITLE"
+  POL_System_TmpDelete
+fi
+
+# Create the Shortcut to the program
+POL_Shortcut "$SHORTCUT" "$TITLE"
+
+POL_SetupWindow_Close
+exit

New source code

#!/bin/bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

# Configuration
TITLE="GOG.com Downloader"
WEBSITE="http://www.gog.com/downloader"
DEVELOPER="GOG.com"
AUTHOR="Rob Loach"
PREFIX="gog_downloader"
WINE_VERSION="1.7.33"
DOWNLOAD="http://static.gog.com/download/d3/stable/Setup_Downloader_3.6.0_stable.exe"
DOWNLOAD_MD5="70f0841a3bc6059c0b7e21df5bc4e38d"
DOWNLOAD_SETUP="Setup_Downloader_3.6.0_stable.exe"
SHORTCUT="GOG.com Downloader.exe"

# Start up PlayOnLinux
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$WEBSITE" "$AUTHOR" "$PREFIX"

# Create the Wine Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINE_VERSION"

# Dependencies
POL_Install_dotnet40
POL_Install_mono210

# Select the installation method
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
  # Select and run the file
  POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
  POL_Wine_WaitBefore "$TITLE"
  POL_Wine start /unix "$APP_ANSWER"
  POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
  # Create a temporary directory
  POL_System_TmpCreate "$PREFIX"
  cd "$POL_System_TmpDir"

  # Download the program
  POL_Download "$DOWNLOAD" "$DOWNLOAD_MD5"
  POL_SetupWindow_wait "Installation in progress." "$TITLE installation"

  # Run the setup
  POL_Wine_WaitBefore "$TITLE"
  POL_Wine start /unix "$POL_System_TmpDir/$DOWNLOAD_SETUP"
  POL_Wine_WaitExit "$TITLE"
  POL_System_TmpDelete
fi

# Create the Shortcut to the program
POL_Shortcut "$SHORTCUT" "$TITLE"

POL_SetupWindow_Close
exit

Replies