mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-01 21:42:31 +01:00
Sude
aa29adf237
Fix return code for Downloader::downloadFileWithId
I accidentally reversed the return code for Downloader::downloadFileWithId when rewriting it to use Galaxy API in a884e8c0a3ebb66af43f514bb03e23e67aecead6 This changes the success return code back to 0 like it was previously.
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
- libcurl >= 7.32.0
- librhash
- jsoncpp
- htmlcxx
- tinyxml2
- boost (regex, date-time, system, filesystem, program-options, iostreams)
- libcrypto if libcurl is built with OpenSSL
- zlib
- qtwebengine if built with -DUSE_QT_GUI=ON
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 libssl-dev \
pkg-config zlib1g-dev qtwebengine5-dev
Build and install
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUSE_QT_GUI=ON
$ make
# sudo make install
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
Links
Description
LGOGDownloader is unofficial downloader to GOG.com for Linux users. It uses the same API as the official GOG Galaxy.
Languages
C++
98.4%
CMake
1.6%