zim-tools icon indicating copy to clipboard operation
zim-tools copied to clipboard

Windows release archive doesn't have `zimwriterfs`

Open shenlebantongying opened this issue 2 years ago • 9 comments

Download https://download.openzim.org/release/zim-tools/zim-tools_win-i686-3.2.0-1.zip

There is no zimwriterfs.exe

shenlebantongying avatar Jun 18 '23 06:06 shenlebantongying

@mgautierfr Should I move the ticket to kiwix/kiwix-build?

kelson42 avatar Jun 18 '23 07:06 kelson42

See https://github.com/kiwix/kiwix-build/blob/10e920ca00819ee837bf5d293a23585399b3b2a4/kiwixbuild/dependencies/zim_tools.py#L25

rgaudin avatar Jun 21 '23 15:06 rgaudin

zimwriterfs has been introduced in zim-tools with https://github.com/openzim/zim-tools/pull/104 From the comments, it seems totally natural we don't build on Windows but we never say why. I simply suspect that zimwriterfs is not totally ported on Windows.

mgautierfr avatar Jun 21 '23 17:06 mgautierfr

@mgautierfr An update would be welcome here

kelson42 avatar Aug 24 '24 09:08 kelson42

zimwriterfs need libmagic to detect the mimetype of the added file and we currently cannot compile it on Windows.

mgautierfr avatar Aug 27 '24 14:08 mgautierfr

@mgautierfr Issue link? Filemagic should not be 100% indispensible AFAIK as we have anyway an extension based mime-type mapping table. This is good enough for 99% of the use case. This would be an acceptable workaround.

kelson42 avatar Aug 27 '24 17:08 kelson42

There is this meta-issue : https://github.com/kiwix/kiwix-build/issues/729

mgautierfr avatar Aug 27 '24 17:08 mgautierfr

At this stage, gumbo and libmagic are not available easily for compilation on Windows. For sure this is the case of libmagic. For this reason we still struggle to have zimwriterfs in the Windows release.

kelson42 avatar Sep 02 '24 14:09 kelson42