blurstudio / hab

A application environment and launcher
GNU Lesser General Public License v3.0
25 stars 3 forks source link

Add custom variable support for a given json file #92

Closed MHendricks closed 8 months ago

MHendricks commented 8 months ago

Checklist

Types of Changes

Proposed Changes

We are storing distro files for DCC's like Maya, Houdini and Nuke in a central location on each workstation(c:\blur\hab\distros). We install these applications in their default locations:

        "distro_paths":[
            // Nuke doesn't use a Company folder so we have to glob the entire Program Files dir
            "C:/Program Files",
            // To handle Houdini and maya we also have to glob the child directories.
            "C:/Program Files/*",

Using a central location for these distro .hab.json files prevents us from having to add multiple glob paths to account for each DCC's install location. We also do our best to leave the dcc directory untouched, and this would require modifying the dcc directory.

If I want to package up the maya .hab.json file and put it on a offsite host that doesn't have maya installed into the default location, I would need to find and replace multiple instances of the path in each of the aliases of that file. Allowing for custom variables makes it so I can centralize that change to a single json entry.