LGOGDownloader is unofficial downloader to GOG.com for Linux users. It uses the same API as the official GOG Galaxy.
Go to file
James Le Cuirot 3f223684cb
Add support for Qt6 (as well as Qt5)
No actual code changes were necessary.

I have partly followed
https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html, but the
versionless targets only work from Qt 5.15 onwards. The suggested
workaround chooses 5 over 6 and does not appear to work properly when
one of the required components is missing. Using the versionless
approach with an additional variable for the targets seems to work best.

If necessary, Qt 5 can be forced over 6 by passing
`-DCMAKE_DISABLE_FIND_PACKAGE_Qt6=ON`.

I have tested this by tweaking the code to force the GUI to appear.
2024-03-14 22:38:04 +00:00
.github/workflows Update linux.yml 2021-11-30 12:49:32 +01:00
cmake Remove support for OpenSSL <= 1.0.2 2021-09-09 14:18:17 +03:00
include add --save-product-json option 2023-12-28 14:25:11 -05:00
man Improve include/exclude options 2023-05-17 18:03:31 +03:00
src Fix for a7de153d76 2024-01-15 01:23:52 +02:00
.gitignore Update .gitignore 2016-01-17 18:15:12 +02:00
CMakeLists.txt Add support for Qt6 (as well as Qt5) 2024-03-14 22:38:04 +00:00
COPYING Initial commit 2013-03-15 22:46:16 +02:00
main.cpp Add mp4 to default regex for orphan check 2024-02-05 22:08:18 +02:00
README.md Update README.md 2024-02-05 20:03:10 -06:00

LGOGDownloader

This repository contains the code of LGOGDownloader which is unoffcial open source downloader for GOG.com. It uses the same API as GOG Galaxy which doesn't have Linux support at the moment.

Dependencies

Make dependencies

Debian/Ubuntu

# apt install build-essential libcurl4-openssl-dev libboost-regex-dev \
libjsoncpp-dev librhash-dev libtinyxml2-dev libhtmlcxx-dev \
libboost-system-dev libboost-filesystem-dev libboost-program-options-dev \
libboost-date-time-dev libboost-iostreams-dev help2man cmake \
pkg-config zlib1g-dev qtwebengine5-dev ninja-build

Build and install

$ cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUSE_QT_GUI=ON -GNinja
$ ninja -Cbuild install

Fedora

sudo dnf install cmake make gcc gcc-c++ glibc tinyxml2-devel rhash-devel \
htmlcxx-devel tinyxml-devel jsoncpp-devel liboauth-devel libcurl-devel \
boost-devel help2man

Build and Install

cmake ..
make

Usage examples

  • Login

      lgogdownloader --login
    
  • Listing games and details for specific games

      lgogdownloader --list
      lgogdownloader --list details --game witcher
    
  • Downloading files

      lgogdownloader --download
      lgogdownloader --download --game stardew_valley --exclude extras
      lgogdownloader --download --threads 6 --platform linux --language en+de,fr
      lgogdownloader --download-file tyrian_2000/9543
    
  • Repairing files

      lgogdownloader --repair --game beneath_a_steel_sky
      lgogdownloader --repair --download --game "^a"
    
  • Using Galaxy API for listing and installing game builds

      lgogdownloader --galaxy-platform windows --galaxy-show-builds stardew_valley
      lgogdownloader --galaxy-platform windows --galaxy-install stardew_valley/0
      lgogdownloader --galaxy-platform windows --galaxy-install beneath_a_steel_sky/0 --galaxy-no-dependencies
    
  • See man page or help text for more

      lgogdownloader --help
      man lgogdownloader
    

paypal