Skip to content

Add handling for post-install and pre-uninstall scripts.#70

Merged
mhsmith merged 6 commits intomainfrom
pre-post-script
Oct 23, 2025
Merged

Add handling for post-install and pre-uninstall scripts.#70
mhsmith merged 6 commits intomainfrom
pre-post-script

Conversation

@freakboy3742
Copy link
Member

@freakboy3742 freakboy3742 commented Oct 15, 2025

Adds extension points to allow for the injection of a post-install or pre-uninstall script, and for options in the installer.

The value of the pre/post install script doesn't matter for the template; it's treated as a boolean.

The installer options is a list of dictionaries, with 4 keys of significance:

  • name: the identifier that is used to
  • title: A human label for the option
  • description: A short description of the option
  • default: true/false (optional; defaults false)

If the configuration defines an option with a name of foo, the OPTION_FOO property can be used to programmatically drive the installer.

Requires the use of the code from beeware/briefcase#2496.

briefcase-repo: https://github.com/freakboy3742/briefcase
briefcase-ref: pre-post-script

Refs beeware/briefcase-windows-app-template#73

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@freakboy3742 freakboy3742 requested a review from mhsmith October 15, 2025 03:28
@mhsmith mhsmith merged commit 69cf5ba into main Oct 23, 2025
18 checks passed
@mhsmith mhsmith deleted the pre-post-script branch October 23, 2025 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants