Crates.io | gog-sync |
lib.rs | gog-sync |
version | 0.3.4 |
source | src |
created_at | 2017-03-21 16:20:10.557448 |
updated_at | 2017-08-02 14:52:22.704919 |
description | Synchronizes a GOG library with a local folder. |
homepage | |
repository | https://gitlab.com/thallian/gog-sync |
max_upload_size | |
id | 9077 |
size | 76,108 |
A small tool to synchronize the stuff in a GOG library with a local folder.
It builds on the work of the unofficial GOG API Documentation.
This is the first time I am building something with rust, so beware :)
Install from crates.io.
cargo install gog-sync
The configuration file is in the config folder as described by the xdg specification
with a prefix of gog-sync
.
For example on macOS or Linux
~/.config/gog-sync/config.json
A bare configuration with default values before first use:
{
"gameStorage": ".",
"movieStorage": ".",
"osFilters": [],
"languageFilters": [],
"resolutionFilters": [],
"skipMovies": false,
"skipGames": false
}
Valid values for osFilter:
linux
mac
windows
Check on gog.com which languages are available.
An incomplete list of resolutions on gog:
DVD
576p
720p
1080p
4k
If you want to see the information log while running set RUST_LOG=info
.
USAGE:
gog-sync [FLAGS] [OPTIONS]
FLAGS:
-h, --help Prints help information
-g, --skip-games Skip game content.
-f, --skip-movies Skip movie content.
-V, --version Prints version information
OPTIONS:
-s, --game-storage <FOLDER> Sets the download folder (defaults to the working directory).
-l, --language <FILTER> Only sync files for this comma seperated list of languages.
-m, --movie-storage <FOLDER> Sets the download folder for movies (defaults to the working directory).
-o, --os <FILTER> Only sync files for this comma seperated list of operating systems.
Valid values are 'linux', 'mac' and 'windows'.
-r, --resolution <FILTER> Only sync movies for this comma seperated list of resolutions.
gog-sync
Normal invocation, uses the current working directory as storage if not configured otherwise.
gog-sync -s ~/Downloads/games
Overwrite the default or configured storage path.
gog-sync -l english -o linux,windows
Only sync english installers and only for linux and windows systems.