Skip to content

Add support for post install scripts on macOS PKG installers #2865

Description

@freakboy3742

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew features, or improvements to existing features.macOSThe issue relates to Apple macOS support.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions