munki / munki-pkg

Repo for the munkipkg tool and example projects
Other
344 stars 72 forks source link

Distribution File Support #28

Open remoe opened 7 years ago

remoe commented 7 years ago

One can add a distribution file in build-info.json:

    "distribution": {
        "name": "distribution.xml",
        "resources": "path/to/resources"
    }

distribution.xml

<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="2">
    <pkg-ref id="@IDENTIFIER@"/>
    <allowed-os-versions>
        <os-version min="10.12" />
    </allowed-os-versions>
    <options customize="never" require-scripts="false" rootVolumeOnly="true" />
    <choices-outline>
        <line choice="default">
            <line choice="@IDENTIFIER@"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="@IDENTIFIER@" visible="false">
        <pkg-ref id="@IDENTIFIER@"/>
    </choice>
    <pkg-ref id="@IDENTIFIER@" version="@VERSION@" onConclusion="none">@PKG@.pkg</pkg-ref>
    <title>App Title</title>
</installer-gui-script>
gregneagle commented 7 years ago

I never saw this until you closed it! This looks interesting...

remoe commented 7 years ago

Should I reopen it? :)

gregneagle commented 7 years ago

Sure!

gregneagle commented 7 years ago

I like the idea here. We'll need updates to the documentation and it would be extremely helpful to point to external documentation on creating a distribution file and the expected syntax. I don't know, for example, what are the legal '@IDENTIFIER@'-style placeholders. If we add this to munki-pkg, there will be questions, and I don't have answers.

erikng commented 7 years ago

This is awesome.