I am about to distribute my plugin and was intending to use DropDMG, but found out that I could not create a symlink to the current users components folder ~/Library/Audio/Plug-Ins/Components.
DropDMG only allows me to deploy to the All Users folder /Library/Audio/Plug-Ins/Components.
So I started to look for an alternative and was recommended Whitebox Packages.
Packages is (more or less) a glorified āwizardā for the built-in command line tools. It will take at most a day to learn these, a great resource to figure out how they work is the Surge repo, as the documentation from Apple is confusing at best.
I chatted with @wavesequencer at NAMM and from what we could tell at the time the issue there was that inside the bundle the permissions were incorrect, it seemed this was from the build of the plugin itself, nothing to do with packages. Iām not sure if Xcode has maybe caused this change for some reason but I think itās worth reviewing the permissions of the files being produced by your build (I think it was the Contents directory inside the bundle that had the issue). You could switch to using the command line tools as suggested but I strongly suspect youāll hit the same issues because as already mentioned itās just a glorified wizard.
The āPresentationā tab in Packages is not showing, as wavessequencer detailed in the link to the thread. And today, the windows close and donāt reopen right after I enter the name and save location for my package.
Iāve not been able to get to the the build stage yet.
I can confirm the issue I had with installed plugins appearing as folders was with the permissions on the build output of the XCode builds (because Iād set my Mac home folder permissions to be more restrictive). I did use the unofficial build of āPackagesā to get the presentation tab to appear correctly in Sonoma.
Iām still thinking about alternative options for making installers on Mac as āPackagesā might not be updated in future (and whilst source is available I donāt have time to figure it out if things need fixing) - so directly using the built in system tools might be a more future proof option.
Itās been a while but from memory once youāve used packages to generate an installer you can use pkgutils to break the installer up again so you can package it with pkgbuild in future. SO it should be easy enough to break away from it if needs be.
Iām almost there with a script inspired by Surge.
Its signing myplugin_AU.pkg fine but not the final mycompanyname-macOs-1.0.pkg, says the latter ānot trustedā. Which may or may not have something to do with the distriubtion.xml (?)
Its signs the final .dmg, and notarizes, staples it Ok.
I have to work out what to put in the ./SOURCE_DIR/resources/data and the ./SOURCE_DIR/scripts/installer_mac folder.
Iām currently putting the Readme.rtf and the License.txt in the installer_mac folder, but its not building the xxx_resources.pkg.
I feel Iām getting there, but for those things. Any ideas on the resources/data and the scripts/installer_mac fodlers?