The repo is public, so any signed-in GitHub user could download the
password-protected symbol zips. Every build/patch job now PUTs its zip to
the upload-symbols function, which stores it in a private bucket under
<version>/<name>; the upload token can only write.
Releases are named release-<platform>.zip, patches
patch-<run number>-<platform>.zip to match the patch/v<version>/<run> tag.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pinning FLUTTER_VERSION to 3.47.4 kept macOS releases on an engine
without shorebirdtech/flutter#172, so Mac App Store builds still
failed Shorebird's hash check and rejected every patch. Releases now
use flutter-version: latest; patches already build with the release's
own Flutter version.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shorebird 1.6.128 fixesshorebirdtech/shorebird#3223: patches now install
after the app is re-signed (Developer ID or Mac App Store .pkg). macOS
patches go through the stock shorebird-patch action like every other
platform, including the beta-track follow-up for stable patches. The
register-baseline script, its README and the disabled plain
`flutter build macos` step go away.
Only valid for macOS releases built with Shorebird >= 1.6.128; releases
up to 7.2.0+157 still need the removed workaround to be patched.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A cold Shorebird cache clones its Flutter fork into a long temp path on the
Windows runner, and the checkout failed with "Filename too long" (MAX_PATH).
Shorebird itself recommends core.longpaths=true.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The tag job checked out with PAT_TOKEN, then TOKEN — both read-only on this repo now, so the tag push 403d ("denied to jonasbark") on every run and no patch/* tag was ever created. The job already grants the built-in GITHUB_TOKEN contents:write and there is no tag protection or ruleset, so push as github-actions[bot], the identity the tagger is already set to.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The tag job's git push 403'd ("denied to jonasbark") because it checked out
with PAT_TOKEN, which only has read on this repo (it writes to prop). Use
secrets.TOKEN — the same PAT the release job pushes tags with.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The patch pipeline OTA-updates an existing release with no record of which
commit produced the patch. Add a `tag` job that, after a successful patch,
creates and pushes an annotated tag `patch/v<version>/<run#>` on github.sha
(the exact dispatched commit), carrying the track, platforms and a run link.
- the run number keeps it unique per run and clear of the v<version> release tag
- runs only when a platform succeeded and none failed; skipped platforms and the
main-branch guard are tolerated, and cancelled runs don't tag
- idempotent: skips if the tag already exists (re-runs reuse the run number)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
A GitHub Actions `x && '' || y` expression can't produce an empty string
(empty is falsy), so the 'latest' default leaked through verbatim and the
patch script looked for a Shorebird release literally named "latest". Translate
'latest' to empty in the run step, and fail early with a clear hint when neither
an explicit release_version nor ASC_MACOS_APP_ID (auto-detect) is available.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Work around shorebirdtech/shorebird#3223: Apple re-processes the submitted
.pkg, so patches built from Shorebird's original `macos/app` artifact download
but fail to load. Register the store-delivered `.app` as a second release
artifact (`macos/app_mas_contents`) and point `shorebird patch` at it.
- Vendor lukemmtt's gist as scripts/shorebird_mas_patch.rb (BikeControl
defaults) with register-baseline/status/patch, plus repo-adapted docs.
- build.yml: ship the macOS store binary through `shorebird release macos` so
it carries the updater and a release record exists to patch against; disable
the plain `flutter build macos` it replaces.
- patch.yml: replace the disabled stock shorebird-patch macOS step (the stale
#143 one) with a script-driven patch, guarded by build_mac (off by default,
needs a one-time local register-baseline first).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
patch.yml referenced inputs.build_mac in three places but never declared it as
a workflow input, so it always evaluated falsy. Declared it, mirroring
build.yml's per-platform booleans. Default is false and the macOS patch step
stays disabled (#143) — the toggle only drives certificate install today, and
its description says so rather than implying macOS gets patched.
Also gated the macOS-runner job on the platforms it actually serves. A
Windows-only patch previously still spun up a macos-26 runner that checked out
the repo, installed Shorebird and Flutter, then ran no patch step at all.
The symbol zip/upload steps deliberately keep gating on android || ios only:
with the macOS patch step disabled, a macOS-only run produces no symbols/ and
`zip -r symbols.zip symbols/` would fail. Noted inline for whoever re-enables
#143.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PanTG9kRBi4QTQ2psvpTxP
windows-latest rolled over to the VS 2026 image; its MSVC (14.51) turns
the STL1011 experimental-coroutine deprecation into a hard error, which
breaks the native build of bluetooth_low_energy_windows and
permission_handler_windows during 'shorebird patch windows'. Pinning to
windows-2025 also matches build.yml, so patches are produced with the
same toolchain as the release they patch.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Patches must come from a release branch — dispatching from main risks
shipping unreviewed work to release users.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>