comradegarry: I want it in a dang tar file so I don't have to go about unpacking it another way. What happens if they change installer system later on and say half of the games have installers this way and another have installers this way? I'm going to need to know how to unpack this installer format or this type. My whole library is backed up in .tar.gz formats now I'll have to manually go and configure everything when a new update comes along or something.
vv221: Take classicgogger’s or ssokolow’s script, chain it with unzip and tar, and you can have your tarball.
Hey, you could even interface this with lgogdownloader to have the repacking done at download time!
Just don’t forget to share your work here afterwards ;)
Ask and ye shall receive.
I updated
makeself_safeextract.py with a
--mojo flag which causes it to assume a MojoSetup file and unpack the Zip file for you.
(I also added basic, minimal Zip format autodetection so, if you omit
--mojo, you'll get "1.tgz" and "2.zip" rather than "1.tgz" and "2.bin")
I then went on to add a proof-of-concept (ie. minimally tested)
lgog_grab.sh script which, to quote the help output you get when you pass no command-line arguments:
Usage: ./lgog_grab.sh <game-selection regexp> [additional lgogdownloader flags]
EXPERIMENTAL wrapper script which:
1. Uses LGOGDownloader to download <game-selection regexp>
2. Uses makeself_safeextract.py to unpack the MojoSetup installers
3. Prunes out the MojoSetup cruft to produce a more tarball-like directory structure
4. Builds a new .zip file (since MojoSetup already used a Zip file with POSIX permissions)