Skip to content

Add scripts to support updating template and stub hashes. - #395

Merged
glasnt merged 2 commits into
mainfrom
hash-update
Sep 14, 2026
Merged

glasnt merged 2 commits into
mainfrom
hash-update

Conversation

@freakboy3742

@freakboy3742 freakboy3742 commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Briefcase v0.4.5 introduces the need to provide hashes for support packages and stub binaries. These are labor intensive to update by hand; so these are some scripts that automate the process of generating those updates.

The code is here rather than in the individual template repositories because there is enough commonality in the code for determining the newest release and updating templates that it's worth sharing.

Usage:

  • python scripts/update_stub.py path/to/template - determines the latest stub binary for the given template, updates the stub binary value, and updates the hashes to match
  • python scripts/update_support.py path/to/template - determines the latest support packages for the given template, and updates the hashes to match. This means:
    • Github releases of Python-Apple-support for macOS and iOS templates
    • Github releases of astral-sh/Python-build-standalone for Linux templates
    • Python.org embeddable releases for Windows templates.

The intention is that these scripts will eventually be added as GitHub workflows to automatically update support packages (either on a manual trigger, or on a cron cadence)

There's no tests because the code is an internal utility, and failure will become evident fairly quickly when the update script fails.

Also removes the vestigial references to pygame workflows, since those were removed in Briefcase v0.4.5.

PR Checklist:

  • I will abide by the BeeWare Code of Conduct
  • I have read and have followed the CONTRIBUTING.md file
  • This PR was generated or assisted using an AI tool
    Assisted-by: Claude Sonnet 5

@freakboy3742 freakboy3742 mentioned this pull request Sep 9, 2026
3 tasks

@glasnt glasnt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intent is that these scripts are used in automation in short order, and may not be designed for local execution, so I have not run them. We will be able to address any execution errors in a follow up PR, if required.

@glasnt
glasnt merged commit fbe4fe3 into main Sep 14, 2026
69 checks passed
@glasnt
glasnt deleted the hash-update branch September 14, 2026 03:15
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