What is the problem or limitation you are having?
Originally reported by @haikesan as #2561.
MSI installers currently support the inclusion of post install scripts.
PKG installers also have the facility for post install scripts; however, Briefcase will not currently make any use of them.
Describe the solution you'd like
It should be possible to add:
post_install_script = "scripts/post_install.sh"
to a macOS project configuration, and have that project configuration include the named script as part of a PKG installation.
Describe alternatives you've considered
n/a
Additional context
There's no analog of a pre-uninstall script for PKG, so the user should be warned if they define a pre-uninstall script for a PKG installer. They should also be warned if they produce a DMG or ZIP installer and have pre-uninstall or post-install scripts defined.
What is the problem or limitation you are having?
Originally reported by @haikesan as #2561.
MSI installers currently support the inclusion of post install scripts.
PKG installers also have the facility for post install scripts; however, Briefcase will not currently make any use of them.
Describe the solution you'd like
It should be possible to add:
to a macOS project configuration, and have that project configuration include the named script as part of a PKG installation.
Describe alternatives you've considered
n/a
Additional context
There's no analog of a pre-uninstall script for PKG, so the user should be warned if they define a pre-uninstall script for a PKG installer. They should also be warned if they produce a DMG or ZIP installer and have pre-uninstall or post-install scripts defined.