Build a .hmskin file

This section is for programmers. Please use it for all discussons on interfacing help with your applications and related subjects.

Moderators: Alexander Halser, Michael Schwarzl

Post Reply
michal_novomesky
Posts: 62
Joined: Thu Jan 12, 2012 2:21 pm
Contact:

Build a .hmskin file

Unread post by michal_novomesky »

It seems .hmskin file has ZIP compression method so it can be easily decompressed and see all the files present in the skin.

I can create a .hmskin file using H&M > File > Save as.

Is there a way to build a .hmskin file via a Command line? Compression to ZIP does not work, H&M can't open it.

Reason why I'm asking: Version control, it's better to store de-compressed files in VCS (to see also updates to the skin) rather than .hmskin which is a binary file.
User avatar
Tim Green
Site Admin
Posts: 23309
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Build a .hmskin file

Unread post by Tim Green »

michal_novomesky wrote: Tue Jun 18, 2024 1:46 pm It seems .hmskin file has ZIP compression method so it can be easily decompressed and see all the files present in the skin.

That is correct.
Is there a way to build a .hmskin file via a Command line? Compression to ZIP does not work, H&M can't open it.
There is no command line option for this. Simply storing a project in a zip with the extension .hmskin won't work, because skins have different content and different XML.
Reason why I'm asking: Version control, it's better to store de-compressed files in VCS (to see also updates to the skin) rather than .hmskin which is a binary file.
You can work with "unpacked" skins. I do this all the time: Just unzip the skin to its own folder and change the extension of the project.hmxp file it contains to .hmskin. You can also change the filename if you like. Just remember to change it back to project.hmxp before you repack it, otherwise it won't work. The only thing that doesn't work with unpacked skins is displaying the preview image when selecting it in Help+Manual.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Post Reply