Commit Graph

271 Commits

Author SHA1 Message Date
Jonas Acker
ae3dd72855 CI: refresh linux-latest on every Linux build and move its tag
The publish job only ran with build_github, so the 7.5/7.6 builds left
linux-latest on 7.4.1. The versioned-release upload stays behind
build_github; the rolling release now always updates, and its tag is
moved to the built commit (the release action never moves an existing tag).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 09:29:20 +01:00
Jonas Acker
d409716bf0 Short Play notes per language; Apple changelog drops emptied releases and sub-items; Click V2 doc comment back on its class
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:45:42 +01:00
Jonas Acker
24c5c65827 changelog: 7.6.0 in all languages; App Store notes and Apple builds leave out other-platform entries
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:53:32 +01:00
Jonas Acker
809c2f63a3 Changelog per language: translations in changelog/<lang>.md for the app and the store notes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 08:42:04 +01:00
Jonas Acker
20a84df08e Add Linux to the Shorebird patch workflow
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 09:43:03 +01:00
Jonas Acker
8792bdb233 Upload build symbols to bikecontrol.app, not Actions artifacts
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>
2026-11-02 19:09:07 +01:00
Jonas Acker
6696aa90e7 CI: create releases with the workflow token
The OpenBikeControl organization now rejects fine-grained personal access
tokens valid for more than 366 days, so every release step using
secrets.TOKEN failed with 403. Use github.token with contents: write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 17:16:08 +01:00
Jonas Acker
af0ddee6ef CI: install Flutter from git for the Linux arm64 build
Flutter publishes no Linux arm64 SDK download, so flutter-action can't set
one up. Use the stable branch instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 16:44:18 +01:00
Jonas Acker
9915ac2f37 CI: fix Linux build dependencies, skip empty symbol upload
GitHub's ubuntu-22.04 runners ship libunwind-14-dev, which conflicts with
the libunwind-dev that libgstreamer1.0-dev needs, so the Linux jobs failed
before building. A run without Apple or Android builds had no symbols to
zip and failed the main job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 16:39:21 +01:00
Jonas Acker
e6947c6894 Package Linux as .deb and AppImage, built in CI
- binary bikecontrol, application id app.bikecontrol.BikeControl
- .deb: /opt/bikecontrol, launcher, icon, bikecontrol:// handler and the
  udev rule for /dev/uinput; AppImage for other distros
- single instance, so a bikecontrol:// link reaches the running app
- CI builds on Ubuntu 22.04 (x64 via Shorebird, arm64) and publishes to
  the version's release and the rolling linux-latest release
- keypress_simulator_linux: no std::clamp (plugins build as C++14)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 14:26:39 +01:00
Jonas Acker
cd0ad862ed ci: build releases with the latest Shorebird-supported Flutter
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>
2026-10-28 17:45:32 +01:00
Jonas Acker
b245f9b509 ci(macos): drop the Mac App Store Shorebird patch workaround
Shorebird 1.6.128 fixes shorebirdtech/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>
2026-10-11 17:49:05 +02:00
Jonas Acker
1901c54ec3 fix(ci): pass Developer ID Installer cert to install-certificates in patch.yml
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-18 11:58:32 +02:00
Jonas Acker
78fcc3bed3 fix(release): App Store notes up to 4000 chars, cut on word boundaries, all locales
The App Store "What's New" reused the 500-byte Play file, so long changelog
entries were cut mid-word (7.0.0 ended in "...as an indoor cy"). head -c also
counted bytes, cutting multi-byte text earlier and able to split a character.

- scripts/truncate_release_notes.sh: truncate by Unicode characters; if the
  text must be cut, cut at the last line break (else last space) and append
  "…". Input that fits is passed through unchanged.
- build.yml: Play keeps a <=500-char whatsnew; a separate <=4000-char
  store_notes/app_store_release_notes.txt feeds the iOS and macOS pushes.
- Fastfile: push release notes to every listing locale, derived from the
  locale folders under the metadata dir (fallback list incl. es-MX), so es-MX
  no longer keeps the previous version's note. Screenshots are unchanged.
- scripts/test_truncate_release_notes.sh covers the truncation rules.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-18 11:20:59 +02:00
Jonas Acker
addf76d746 fix 2026-09-17 15:51:37 +02:00
Jonas Acker
bd66ed6b87 cleanup 2026-09-17 15:15:11 +02:00
Jonas Bark
a1028e3e65 Reapply "order"
This reverts commit 758dafe740.
2026-09-17 13:41:55 +02:00
Jonas Bark
758dafe740 Revert "order"
This reverts commit 539df0e3d1.
2026-09-17 13:21:49 +02:00
Jonas Bark
539df0e3d1 order 2026-09-17 13:02:54 +02:00
Jonas Bark
00c6adf0ee cleanup 2026-09-17 11:50:14 +02:00
Jonas Bark
2851da7ec8 ci: enable git long paths before Shorebird on Windows
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>
2026-09-17 11:31:38 +02:00
Jonas Bark
7b3a0bdea4 fix(ci): push patch provenance tag with GITHUB_TOKEN, not a PAT
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>
2026-08-28 14:44:10 +02:00
Jonas Bark
f6e215d041 fix(ci): push patch tags with the repo-write token, not PAT_TOKEN
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>
2026-08-28 12:27:12 +02:00
Jonas Bark
0f528787da ci(patch): tag the source commit of every Shorebird patch
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>
2026-08-28 10:52:31 +02:00
Jonas Bark
a468fbcfad fix(release): push per-release "What's New" to every store locale
build.yml uploaded the iOS/macOS binary with `altool --upload-app`, which
can't set release notes, and only generated whatsnew-en-US for Play. So
non-English App Store locales kept inheriting the previous version's note
(the old TrainingPeaks announcement) release after release, and non-English
Play locales never got a per-release note.

Now the top English CHANGELOG entry is pushed to every managed locale on
both stores:
- Play: fan whatsnew out to all Play locales for whatsNewDirectory.
- App Store / Mac App Store: new fastlane upload_release_notes[_macos]
  lanes push the note to every STORE_LOCALES locale via deliver (release
  notes only, descriptions untouched), wired into build.yml after each
  altool upload with continue-on-error so it can't fail the binary release.

The note is the English text in every language (the per-release changelog
isn't translated). Documented in STORE_METADATA.md.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-28 08:46:06 +02:00
Jonas Bark
7eaf26884d Merge remote-tracking branch 'origin/feat/shorebird-macos-mas-patches' into 6.5 2026-08-27 12:40:48 +02:00
Jonas Bark
ea536c4678 fix(shorebird): don't pass 'latest' as a macOS release version
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>
2026-08-27 12:30:23 +02:00
Jonas Bark
56bfc371e9 patch macOS by default 2026-08-27 12:22:47 +02:00
Jonas Bark
6ab8bf80bb feat(shorebird): enable macOS App Store OTA patches
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>
2026-08-24 12:06:36 +02:00
Jonas Bark
08889a556b ci(patch): make platform selection work like the build pipeline
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
2026-07-30 13:26:20 +02:00
Jonas Bark
00f903d20c ci: add Shorebird track input; stable patches also feed the beta track 2026-07-07 11:13:58 +02:00
Jonas Bark
aee00402fc version++ 2026-06-26 22:41:11 +02:00
Jonas Bark
312137bad3 Mirror the App Store listing to macOS
macOS shares the App Store record (same bundle id), so add an
upload_metadata_macos deliver lane that reuses the iOS listing texts
(same metadata_path) under platform osx, and run it from the metadata
workflow's iOS job on every upload. Screenshots use the desktop renders
(2560x1600 — a valid Mac size, framed like the others); the prepare
script now stages them into ios/fastlane/screenshots_macos (gitignored).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 18:54:26 +02:00
Jonas Bark
57a530acbc Make metadata download/commit-back robust
- Android download: 'supply init' won't overwrite existing metadata (it printed
  'Metadata already exists ...' and downloaded nothing), so clear the folder
  first to actually re-pull the live Google Play listing.
- Commit-back: rebase onto FETCH_HEAD instead of origin/6.1 (the remote-tracking
  ref doesn't exist after 'git fetch origin 6.1', which failed the iOS job with
  'invalid upstream origin/6.1'), and retry the push so the two parallel jobs
  (disjoint android/ vs ios/ paths) converge.
- Drop the auto app-repo submodule-pointer bump (racy across the two jobs); the
  metadata still lands in prop@6.1. Bump the pointer separately if needed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 10:09:42 +02:00
Jonas Bark
e84ba6c44e Fix fastlane path resolution (lanes run from the fastlane/ folder)
The Store Metadata workflow failed on first run: fastlane chdir's into the
fastlane/ folder before executing a lane, so the Fastfiles' project-dir-relative
paths resolved one level deep (e.g. android/fastlane/fastlane/service-account.json,
ios/fastlane/fastlane/asc_api_key.json) and the lanes couldn't find the key files
or metadata.

Anchor every path at the repo root via GITHUB_WORKSPACE (set by Actions; falls
back to two levels up from the Fastfile locally), so json_key, metadata_path,
screenshots_path, the API-key .p8/.json and the download-lane subprocess args are
all absolute and CWD-independent. Drop the now-redundant relative
SUPPLY_JSON_KEY_FILE env.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 09:57:30 +02:00
Jonas Bark
3c1495ff8f Merge origin/6.1 into claude/fastlane-supply-metadata-2cjxs3
Bring the fastlane/store-metadata branch up to date with 6.1. Resolved
.gitignore by keeping both sides' rules; prop fast-forwards to the
store_metadata commit (a descendant of 6.1's prop pin).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 09:21:54 +02:00
Jonas Bark
cea9112031 Move store metadata into the private prop submodule
The localized App Store / Google Play listing text (titles, descriptions,
keywords, ...) was committed under ios/fastlane/metadata and
android/fastlane/metadata in this public repo, exposing the marketing/ASO copy.
Relocate it to the private prop submodule (prop/store_metadata/{ios,android})
and point fastlane at it; the public repo keeps only the lanes/workflow.

- ios/android Fastfiles: METADATA = "../prop/store_metadata/{ios,android}"
  (lanes run from ios//android/, so ../prop is the repo-root submodule).
- prepare_store_screenshots.sh: Android images stage under the prop metadata
  path; iOS screenshots unchanged.
- metadata.yml: checkout the prop submodule (submodules: recursive + PAT_TOKEN);
  on download, commit & push the listing text to OpenBikeControl/prop (6.1) and
  bump the submodule pointer here. PAT_TOKEN needs write access to prop.
- .gitignore / STORE_METADATA.md updated; screenshots stay public in ./screenshots.
- Bumps prop submodule to include the new store_metadata.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 06:56:26 +02:00
Claude
eb37850b2d Upload store screenshots from screenshot_test.dart goldens
Add scripts/prepare_store_screenshots.sh which maps the golden screenshots
produced by test/screenshot_test.dart (./screenshots/<scene>-<device>-<WxH>.png)
into the per-language layout fastlane expects:
- Google Play: phoneScreenshots (android) + tenInchScreenshots (androidTablet)
- App Store: iPhone 6.5" + iPad 12.9" images per locale (device detected by size)

The fastlane upload lanes now include screenshots (skip_upload_screenshots /
skip_screenshots disabled), and the 'Store Metadata' upload workflow runs the
prepare step first. Generated screenshot folders are gitignored so the images
stay sourced from the test output instead of being duplicated per language.

https://claude.ai/code/session_01Q3VrPge5KaXrrogqtbvGLZ
2026-06-15 20:21:43 +00:00
Claude
69025a5a71 Add fastlane for App Store & Play Store metadata per language
Manage localized store listings via fastlane (supply for Google Play,
deliver for the App Store) with one folder per language under
android/fastlane/metadata and ios/fastlane/metadata (en, de, fr, es, it, pl).

The txt files are seeded with the current live store data fetched from the
public Play Store and App Store listing pages. App Store listings are only
localized in English upstream, so the non-English iOS texts are translated
from the live en-US listing.

Adds a manually-triggered 'Store Metadata' GitHub Actions workflow to
download (store -> repo, auto-committed) or upload (repo -> store, texts only)
the metadata for either or both platforms, reusing the existing store secrets.

https://claude.ai/code/session_01Q3VrPge5KaXrrogqtbvGLZ
2026-06-14 17:43:15 +00:00
Jonas Bark
16b264df2a Pin Patch Windows job to windows-2025
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>
2026-06-11 22:22:24 +02:00
Jonas Bark
a5e57049c4 Flutter version update 2026-06-02 21:30:37 +02:00
Jonas Bark
17153f707a ci: block patch workflow from running on main
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>
2026-05-21 23:03:04 +02:00
Jonas Bark
aafc44fa68 patch symbolds 2026-05-18 21:24:16 +02:00
Jonas Bark
d60bb575b4 patch symbolds 2026-05-18 21:18:34 +02:00
Jonas Bark
7c613500fc Revert "patch symbolds"
This reverts commit 854a6197a582d256835f9987f323a034f7a95770.
2026-05-18 20:45:15 +02:00
Jonas Bark
39d6bbda85 patch symbolds 2026-05-18 20:44:32 +02:00
Jonas Bark
860d969010 patch symbolds 2026-05-18 19:22:53 +02:00
Jonas Bark
6f57e61d39 improve pipelines 2026-05-14 15:59:53 +02:00
Jonas Bark
e02c6f284e fux certificates 2026-05-14 15:48:51 +02:00
Jonas Bark
5b2baf2e85 screenshots & iOS build 2026-05-13 09:30:13 +02:00