Is there a documentation about packaging archives for DIM ?

ElorElor Posts: 1,485

Hello,

I ask because I'm writting a Bash script to be able to create such archives and I want to avoid various pitfalls that could lead to problems for people using the archives I'm creating.

I know products are sold on Daz Store to take care of it, but most are for Windows and I don't see myself using them enough to justify buying them.

Does someone know if there is documentation somewhere about the requirement of an archive packaged to allow DIM to install what's inside it ? Or a list of the special characters that must to be escaped in Manifest.dsx (like '&' replaced by '&'), ?

I opened a couple of them from my library and they seem to be standard zip archives, with a simple structure:

  • A Content directory with the various files needed by a product to work in Daz (including the metadata stored in the file in /Runtime/Support)
  • A Manifest.dsx file
  • A Supplement.dsx

Is that the case or is there some hidden requirements somewhere (to use a similar example: epub files are zip archives but with a special twist: their first file must to be named mimetype must to be uncompressed) I may have missed?

Post edited by Elor on

Comments

  • OmnifluxOmniflux Posts: 377

    @Elor

    I have a Python module to do this you might be interested in - https://github.com/Omniflux/gendazpack

  • ElorElor Posts: 1,485

    Richard Haseltine said:

    http://docs.daz3d.com/doku.php/public/software/install_manager/referenceguide/tech_articles/start

    Thank you smiley

    Omniflux said:

    @Elor

    I have a Python module to do this you might be interested in - https://github.com/Omniflux/gendazpack

    Hello,

    It looks interesting, but I don't know how to use Python. While I learned a bit of Python a couple of years ago, I never used it and have since forgotten what I learned back then.

    I tried to find a video about using Poetry but I have mostly found videos about using it while creating a project, not using it to launch someonelse's project.

    If you have one that you find good, I'm all ears :)

     

  • OmnifluxOmniflux Posts: 377

    Assuming you have a recent version of Python installed, which is likely if you are writing for Bash, you can try pip install gendazpack

    The Manifest is standard XML. There are a number of characters that need to be escaped depending on their location. Lookup XML escaping rules for details. It's best to use a library to do this, although I'm not sure which can be called from a shell script.

     

  • UnseenUnseen Posts: 651

    Look at this freeware:

    https://sharecg.com/v/88851/related/10/Software-and-Tools/Install-Manager-Package-Maker-Version-2

    It creates files that can be installed with DIM.

  • ElorElor Posts: 1,485
    edited October 28

     

    Omniflux said:

    Assuming you have a recent version of Python installed, which is likely if you are writing for Bash, you can try pip install gendazpack

    The Manifest is standard XML. There are a number of characters that need to be escaped depending on their location. Lookup XML escaping rules for details. It's best to use a library to do this, although I'm not sure which can be called from a shell script.

    I have Python 3.13, installed with Homebrew afair but didn't think a pip package was available. But now (after installing pip from homebrew because apparently it was necessary) I have gendazpack installed smiley Thank you!

    As for what can be launched from a shell script ? I think anything as long as it has a CLI.

    Apparently, there is mainly 5 characters that may appear in the name of a product that need to be escaped (other caracthers have to be from what I read, but I don't think I'm supposed to see them in the name of a product) and I have already a function based on Bash Parameters expansion to take care of escaping characters: I'll adjust it and see how it goes, comparing the result of your program and from my script to see if I missed something.

    Unseen said:

    Look at this freeware:

    https://sharecg.com/v/88851/related/10/Software-and-Tools/Install-Manager-Package-Maker-Version-2

    It creates files that can be installed with DIM.

    I forgot about it, thank you! I'll keep it in mind but I prefer to work on my Mac.

    Post edited by Elor on
Sign In or Register to comment.