munki / createOSXinstallPkg

Tools for packaging OS X installers
Other
317 stars 47 forks source link

Feature Request: .adtmpl support #17

Open jazzace opened 8 years ago

jazzace commented 8 years ago

In reading your post about the excellent new --make-fake-app feature, it struck me that some redundant work could potentially be avoided if createOSXinstallPkg could parse a list of packages in the AutoDMG template format. Altering the command from the post, it could look something like:

sudo ./createOSXinstallPkg --source /Applications/Install\ macOS\ Sierra\ Developer\ Beta.app --make-fake-app --plist /path/to/AutoDMG_VM.adtmpl

Since the AutoDMG and createOSXInstallPkg plists have a lot in common, it would make sense to parse it under the --plist option. In the example above, --source would override anything in the .adtmpl file (although you could also choose to just parse the Additional Packages and document that source was not supported).

gregneagle commented 8 years ago

Sounds like a reasonable idea. I've never used AutoDMG's templates. I don't know how many people use createOSXinstallPkg's plist support, so we'd have to support both formats. It's not something I need, so I don't plan on implementing any time soon, but would be open to a pull request.