Guest User

Untitled

a guest
Mar 27th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.32 KB | None | 0 0
  1. #!/bin/bash
  2. ## example of gogrepo.py's automatization. Improvements will be welcome!
  3. ## this script is written for a setup, when it lies in same directory as gogrepo.py and its downloads
  4. ## also needs gogrepo.py to be logged in
  5.  
  6. # get to script's location
  7. cd "`dirname "$0"`"
  8.  
  9. # update our local database
  10. ## I use "hidden" folder on site as place for games, I dont want to download any time soon - so its skipped
  11. ## I also play both linux and wine games, so - it gets info regarding both
  12. ## If you are using anything else than english - dont forget to add/change stuff after -lang
  13. python ./gogrepo.py update -os windows linux -lang en -skiphidden -installers standalone
  14.  
  15. # move outdated files into !orphaned folder
  16. ## its not really hard to automate deletion of files too, however I always prefer to do that manually. Just in case
  17. python ./gogrepo.py clean "."
  18.  
  19. # now its time to download/update some games
  20. ## things below are just examples - feel free to change them as you please
  21. ## there may be as many lines as you wish - if nothing has changed, games wont be redownloaded
  22. # windows
  23. python ./gogrepo.py download -os windows -lang en -ids grim_dawn -skipgalaxy
  24. python ./gogrepo.py download -os windows -lang en -ids ys* -skipgalaxy
  25.  
  26. # linux
  27. python ./gogrepo.py download -os linux -lang en -ids tales_of_majeyal -skipgalaxy
Add Comment
Please, Sign In to add comment