-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to manually modify the zip.html file? #184
Comments
I think you need to make your changes, then just open index.html and save rendered page with SingleFileZ. |
its not a zip file but a html zip hybrid file so either you need a zip editor that edits the zip data stream without rewriting the file at all or you would have to separate the zip part from the html part, edit the zip part and then put it back together, that may be possible with determening the offsets with an hexeditor and then clever binutils split/concanate use, but its only a theory ;) Maybe someone with more experience could write some tools for that... |
|
ok, i split it modified the zip part and put it back together but now it is not loading the page anymore, so there seams to be some more magic in there then i can determine, maybe some expert on that html.zip hybrid format could give some hint ;) |
@nanderer It's actually a long story, you can find some info about the format in this presentation: https://github.com/gildas-lormeau/Polyglot-HTML-ZIP-PNG. I guess that the entry offsets in the ZIP data are incorrect in your file. The extra data is used for Chromium and Webkit-based browsers to recover corrupted data when reading the ZIP payload from the DOM. |
thanks for looking into it, what would be the correct offset for the file and how to get to it?
is that sfz-extra-data depended on the zip part, if so, how to regenerate it? |
Just wanted to manually modify a saved zip.html file. I tried to unzip it, modify, and re-zip. But the file can't be opened correctly, only showing random characters.
I'm curious what this 'self-extracting zip file' is. The only 'self-extracting zip file' I know is exe file on windows, which is certainly not the case.
And most importantly, how to re-zip it manually?
The text was updated successfully, but these errors were encountered: