Posted August 11, 2015
![JudasIscariot](https://images.gog.com/53a791f0b2a54182019a71b20f956ac88d235400851016c013e84ebf9d2c55bd_forum_avatar.jpg)
JudasIscariot
Thievin' Bastard
GOG.com Team
Registered: Oct 2008
From Poland
![edmondo](https://images.gog.com/b1e2b5edbfd64ad0cb249aefe8fa9fe9f6a0b18f3834fef672658e476f7fd1be_forum_avatar.jpg)
edmondo
New User
Registered: Jun 2010
From Switzerland
Posted August 11, 2015
Very nice! Thanks GOG :-)
Tested on Gentoo Linx 64 bits. Works perfectly! Well done.
Tested on Gentoo Linx 64 bits. Works perfectly! Well done.
![hummer010](https://images.gog.com/49df97f09b785b1655e07df808b922d9c847856384e7308f699ee8e720a43698_forum_avatar.jpg)
hummer010
Crazy Penguin
Registered: Dec 2012
From Canada
Posted August 11, 2015
![avatar](http://images.gog.com/a73b51aa9a6c40077ef2b8b9d40bc0ff4fc5042d6412fdd4db6ecf40c3891fd1_avm.jpg)
![avatar](http://images.gog.com/53a791f0b2a54182019a71b20f956ac88d235400851016c013e84ebf9d2c55bd_avm.jpg)
All in all, I'm pleased with the change. Nothing is lost from the tarball downloads, and differential patching is gained. That's a real win in my books!
Post edited August 11, 2015 by hummer010
![JudasIscariot](https://images.gog.com/53a791f0b2a54182019a71b20f956ac88d235400851016c013e84ebf9d2c55bd_forum_avatar.jpg)
JudasIscariot
Thievin' Bastard
GOG.com Team
Registered: Oct 2008
From Poland
Posted August 11, 2015
![avatar](http://images.gog.com/a73b51aa9a6c40077ef2b8b9d40bc0ff4fc5042d6412fdd4db6ecf40c3891fd1_avm.jpg)
![avatar](http://images.gog.com/a90be5c71eff96ceab2729322f000527bf9928c873db3f76ad7db9f45d7caad8_avm.jpg)
![avatar](http://images.gog.com/53a791f0b2a54182019a71b20f956ac88d235400851016c013e84ebf9d2c55bd_avm.jpg)
![avatar](http://images.gog.com/a90be5c71eff96ceab2729322f000527bf9928c873db3f76ad7db9f45d7caad8_avm.jpg)
All in all, I'm pleased with the change. Nothing is lost from the tarball downloads, and differential patching is gained. That's a real win in my books!
![TerriblePurpose](https://images.gog.com/9b03503b24a66e76e7101cff2317c9e1103556251a505593b954ebdf4459dcd7_forum_avatar.jpg)
TerriblePurpose
Kwisatz Haderach
Registered: Sep 2008
From Canada
![classicgogger](https://images.gog.com/854da450f2b58859f5300db792d5abb4d76e13bfe52df29832269cab56fcb61b_forum_avatar.jpg)
classicgogger
Registered: Feb 2013
From Germany
Posted August 11, 2015
EDIT: Deleted, reason: misleading/ wrong. Both md5/ crc don't match the zipfiles data.
Post edited August 12, 2015 by classicgogger
![JudasIscariot](https://images.gog.com/53a791f0b2a54182019a71b20f956ac88d235400851016c013e84ebf9d2c55bd_forum_avatar.jpg)
JudasIscariot
Thievin' Bastard
GOG.com Team
Registered: Oct 2008
From Poland
Posted August 11, 2015
![DeathDiciple](https://images.gog.com/d5610bc55a28f45d5cab98f8e23e844c3b409132a158bc5760bb533b6832e5fb_forum_avatar.jpg)
DeathDiciple
Registered: Dec 2013
From Serbia
![hyperagathon](https://images.gog.com/42ef9d2cf5734f885cc1576cf9294be48c83c9341a6c62e3fbe022e103ea8705_forum_avatar.jpg)
hyperagathon
Bear it All
Registered: Aug 2010
From Croatia
Posted August 12, 2015
While I think leaving just the tarballs would have been the better solution, I can live with an unpackable installer.
![kellzap](https://images.gog.com/b8a770b3a71e5ff9394d243dd3d87688d60246541f32d48174348a903ae0dcf1_forum_avatar.jpg)
kellzap
New User
Registered: Dec 2011
From United States
Posted August 12, 2015
I loving this!! :D
![comradegarry](https://images.gog.com/275e804c9ea043427f6773bb4928e00949e1719ed43335bef571f9c6d331d30f_forum_avatar.jpg)
comradegarry
Trailer Liv'n Redneck
Registered: Apr 2011
From United States
Posted August 12, 2015
Really rather have the good ol' unpacking .tar.gz than some installer.. This ain't good news for me :\
![classicgogger](https://images.gog.com/854da450f2b58859f5300db792d5abb4d76e13bfe52df29832269cab56fcb61b_forum_avatar.jpg)
classicgogger
Registered: Feb 2013
From Germany
Posted August 12, 2015
Easy and fast way to cut out the original zip file:
--------- file: gog_cut.sh --------
#!/bin/bash
if [ $# -eq 0 ]
then
echo "No file specified!"
exit 1
fi
POSITION=$(grep -obUaPm1 "\x50\x4b\x03\x04" $1 | cut -d: -f1)
tail -c +$((POSITION+1)) $1 > ${1%.sh}.zip
---------------------------------------
Usage: ./gog_cut.sh gog_package.sh
example: ./gog_cut.sh gog_race_the_sun_2.1.0.4.sh
Explanation:
1. Check if there's a file supplied i.e. gog_race_the_sun_2.1.0.4.sh
2. find the magic header in hex notation (504b0304) - output it's position
3. cut it from there and output it to file.zip ie. gog_race_the_sun_2.1.0.4.zip
You can verify the output with unzip -t file.zip
In case anybody asks why "tail" and not "dd": it's faster.
Btw. it should be able to cut out any zip file out of any file, but you have to fix the file extension on the last line.
P.S. don't forget to make it executable first: chmod +x gog_cut.sh
--------- file: gog_cut.sh --------
#!/bin/bash
if [ $# -eq 0 ]
then
echo "No file specified!"
exit 1
fi
POSITION=$(grep -obUaPm1 "\x50\x4b\x03\x04" $1 | cut -d: -f1)
tail -c +$((POSITION+1)) $1 > ${1%.sh}.zip
---------------------------------------
Usage: ./gog_cut.sh gog_package.sh
example: ./gog_cut.sh gog_race_the_sun_2.1.0.4.sh
Explanation:
1. Check if there's a file supplied i.e. gog_race_the_sun_2.1.0.4.sh
2. find the magic header in hex notation (504b0304) - output it's position
3. cut it from there and output it to file.zip ie. gog_race_the_sun_2.1.0.4.zip
You can verify the output with unzip -t file.zip
In case anybody asks why "tail" and not "dd": it's faster.
Btw. it should be able to cut out any zip file out of any file, but you have to fix the file extension on the last line.
P.S. don't forget to make it executable first: chmod +x gog_cut.sh
Post edited August 12, 2015 by classicgogger
![BillyMaysFan59](https://images.gog.com/89571cf08c28896a8ccd325a8caa9508bc4a1f17d19cfbec93c8686ee34e92ad_forum_avatar.jpg)
BillyMaysFan59
gone (but still playing his games)
Registered: Nov 2013
From United States
![comradegarry](https://images.gog.com/275e804c9ea043427f6773bb4928e00949e1719ed43335bef571f9c6d331d30f_forum_avatar.jpg)
comradegarry
Trailer Liv'n Redneck
Registered: Apr 2011
From United States
Posted August 12, 2015
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.
![Fairfox](https://images.gog.com/d24039124b6deacfcf61e5fcac0b94053f1dc4b69f96a2c229a7d4e5f9e44995_forum_avatar.jpg)
Fairfox
New User
Registered: Sep 2010
From United States
Posted August 12, 2015
deleted
Post edited August 12, 2015 by Fairfox