Le mercredi 28 avril 2010 09:13:24, Vincent Pelletier a écrit :
I'm trying to add support for GOG.com installers.
Please review attached patch. I can add more games to it, but now that I validated 8 cases (with/without adobe installer, with multiple installer files, with various command lines) I would prefer to have my scripting reviewed before expanding more.
Note: I can split the patch if needed.
Changelog: - add basic cookie support in "download" (required as GOG.com requires auth to download games) - add CONTROL_WAIT_VISIBLE ahk generic macro - add CHECKBOX_SET ahk generic macro - add generic automation for gog installer (based on http://www.jrsoftware.org/isinfo.php) - Add support for: duke nukem 3d duke nukem manhattan project ut2004 abe's oddisee abe's exoddus beyond good and evil far cry descent 1 & 2 (single package)
Especially, please review: - if there would be an easier-to-use way to pass cookies to wget/curl (cookie.txt format seems overcomplex, and not supported for export in my iceweasel: debian sid) - if cookie works properly with curl (manpage says it should, not tested) - _load_gog parameters. They are ugly IMO, because many are optional. But I don't see how to do better (especially, how to extend them to include optional SHA1 values). - bat scripting (untested) - posix-ish scripting (not tested outside linux with bash)