Menu

#1212 Control the actual file order to support EPUB (and other) compressed formats

open
None
6
2014-11-01
2014-10-17
Darker
No

Unlike WinRAR, 7Zip alters the order of files even when they're being added to Zip archive. This means there are no means to use 7Zip to create a EPUB file, which requires the file mimetype to be the first in archive.

I created such batch file (makeepub.bat), which is now useless, because even though I add the mimetype first, 7zip then reorders the files and the result is broken:

Epubcheck Version 3.0.1

ERROR: C:/MYSELF/Books/1984---George-Orwell/1984---George-Orwell.epub: Mimetype
entry missing or not the first in archive
Validating against EPUB version 2.0

Check finished with warnings or errors

C:\MYSELF\Programs\epubcheck-3.0.1>pause
1 Attachments

Discussion

  • Darker

    Darker - 2014-10-17

    I'm not the only one:

    http://superuser.com/q/385392/194976

    Also there's a ticket directly asking for EPUB creating possibility. I think, however, that the ability to manage file order in archive would be better:

    https://sourceforge.net/p/sevenzip/feature-requests/1196/

    I wanted to add this notice to my original ticket, but sourceforge is permissions on this project are retarded and doesn't allow any edits to your posts.

     

    Last edit: Darker 2014-10-17
  • Igor Pavlov

    Igor Pavlov - 2014-10-18

    With latest 7-Zip 9.34 alpha:
    ren mimetype !mimetype
    7z a a.zip !mimetype another_files
    7z rn a.zip !mimetype mimetype

     
  • Darker

    Darker - 2014-10-18

    Thanks a lot :)

    Is there a way to get this version already? I can see that the newest version here on SourceForge is 9.22.

     

Log in to post a comment.