2020-03-14 17:28:42 +01:00
|
|
|
# LGOGDownloader
|
2015-08-27 12:32:22 +02:00
|
|
|
|
2020-03-14 17:28:42 +01:00
|
|
|
This repository contains the code of LGOGDownloader which is unoffcial open source downloader for [GOG.com](https://www.gog.com/).
|
|
|
|
It uses the same API as GOG Galaxy which doesn't have Linux support at the moment.
|
2015-08-27 12:32:22 +02:00
|
|
|
|
2015-08-27 16:47:41 +02:00
|
|
|
## Dependencies
|
2015-08-27 12:32:22 +02:00
|
|
|
|
2023-04-12 11:50:34 +02:00
|
|
|
* [libcurl](https://curl.haxx.se/libcurl/) >= 7.55.0
|
2016-05-13 14:42:55 +02:00
|
|
|
* [librhash](https://github.com/rhash/RHash)
|
|
|
|
* [jsoncpp](https://github.com/open-source-parsers/jsoncpp)
|
2024-05-09 13:37:53 +02:00
|
|
|
* [libtidy](https://www.html-tidy.org/)
|
2016-05-13 14:42:55 +02:00
|
|
|
* [tinyxml2](https://github.com/leethomason/tinyxml2)
|
2017-02-17 11:11:04 +01:00
|
|
|
* [boost](http://www.boost.org/) (regex, date-time, system, filesystem, program-options, iostreams)
|
2018-05-29 07:56:29 +02:00
|
|
|
* [zlib](https://www.zlib.net/)
|
2019-03-01 09:05:16 +01:00
|
|
|
* [qtwebengine](https://www.qt.io/) if built with -DUSE_QT_GUI=ON
|
2016-05-20 19:40:53 +02:00
|
|
|
|
|
|
|
## Make dependencies
|
2023-07-22 15:09:46 +02:00
|
|
|
* [cmake](https://cmake.org/) >= 3.5.0
|
2021-11-30 12:52:40 +01:00
|
|
|
* [ninja](https://github.com/ninja-build/ninja)
|
2015-08-29 15:54:36 +02:00
|
|
|
|
2024-02-06 03:03:10 +01:00
|
|
|
## Debian/Ubuntu
|
2015-08-27 12:32:22 +02:00
|
|
|
|
2015-08-27 16:47:41 +02:00
|
|
|
# apt install build-essential libcurl4-openssl-dev libboost-regex-dev \
|
2024-05-09 13:37:53 +02:00
|
|
|
libjsoncpp-dev librhash-dev libtinyxml2-dev libtidy-dev \
|
2016-06-12 18:22:38 +02:00
|
|
|
libboost-system-dev libboost-filesystem-dev libboost-program-options-dev \
|
2024-06-04 16:20:25 +02:00
|
|
|
libboost-date-time-dev libboost-iostreams-dev cmake \
|
2021-11-30 12:52:40 +01:00
|
|
|
pkg-config zlib1g-dev qtwebengine5-dev ninja-build
|
2015-08-27 12:32:22 +02:00
|
|
|
|
2024-02-06 03:03:10 +01:00
|
|
|
### Build and install
|
2015-08-27 12:32:22 +02:00
|
|
|
|
2021-11-30 12:52:40 +01:00
|
|
|
$ cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DUSE_QT_GUI=ON -GNinja
|
|
|
|
$ ninja -Cbuild install
|
2015-08-27 12:32:22 +02:00
|
|
|
|
2024-02-06 03:03:10 +01:00
|
|
|
## Fedora
|
|
|
|
```
|
|
|
|
sudo dnf install cmake make gcc gcc-c++ glibc tinyxml2-devel rhash-devel \
|
2024-05-18 20:40:45 +02:00
|
|
|
libtidy-devel tinyxml-devel jsoncpp-devel libcurl-devel \
|
2024-06-04 16:20:25 +02:00
|
|
|
boost-devel
|
2024-02-06 03:03:10 +01:00
|
|
|
```
|
|
|
|
### Build and Install
|
|
|
|
```
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
2020-03-14 17:28:42 +01:00
|
|
|
## Usage examples
|
2015-08-27 12:32:22 +02:00
|
|
|
|
2020-03-14 17:28:42 +01:00
|
|
|
- **Login**
|
|
|
|
|
|
|
|
lgogdownloader --login
|
|
|
|
|
|
|
|
- **Listing games and details for specific games**
|
|
|
|
|
|
|
|
lgogdownloader --list
|
2023-04-12 11:50:34 +02:00
|
|
|
lgogdownloader --list details --game witcher
|
2020-03-14 17:28:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
- **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
|
2015-08-29 15:54:36 +02:00
|
|
|
|
|
|
|
## Links
|
|
|
|
- [LGOGDownloader website](https://sites.google.com/site/gogdownloader/)
|
|
|
|
- [GOG forum thread](https://www.gog.com/forum/general/lgogdownloader_gogdownloader_for_linux)
|
|
|
|
- [LGOGDownloader @ AUR](https://aur.archlinux.org/packages/lgogdownloader/)
|
|
|
|
- [LGOGDownloader @ AUR (git version)](https://aur.archlinux.org/packages/lgogdownloader-git/)
|
2015-10-03 20:11:19 +02:00
|
|
|
- [LGOGDownloader @ Debian](https://tracker.debian.org/lgogdownloader)
|
|
|
|
- [LGOGDownloader @ Ubuntu](https://launchpad.net/ubuntu/+source/lgogdownloader)
|
2020-03-14 17:28:42 +01:00
|
|
|
|
|
|
|
[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PT95NXVLQU6WG&source=url)
|