Add scripts to support updating template and stub hashes. - #395
Open
freakboy3742 wants to merge 2 commits into
Open
Add scripts to support updating template and stub hashes.#395freakboy3742 wants to merge 2 commits into
freakboy3742 wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 matchpython scripts/update_support.py path/to/template- determines the latest support packages for the given template, and updates the hashes to match. This means: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:
Assisted-by: Claude Sonnet 5