Repository navigation
feat: Builds, uploads and promotes the Linux AppImage in the release workflows - #17
Merged
Merged
Conversation
…workflows. Linux joins macOS and Windows in release.yml and promote.yml, with the same gates: release_plan.sh plans it, tool/linux/publish_release.sh uploads the AppImage built on ubuntu-24.04 (immutable object, .sha256 sidecar, build number against the live appcast, the AppImage's own version against pubspec), and tool/linux/promote_release.sh signs the bucket's object into appcast/linux/appcast.xml with appcast.sh, refusing a key or a feed URL that is not the one linux/release.json ships. downloads/linux.json comes from publish_downloads.sh --platform=linux. Linux shares pubspec's build counter, so set_version.sh now clears the Linux feeds too. The tag message names the Linux build once Linux is configured. Linux stays skipped until linux/release.json has a feed and a key; the one-time setup is in specs/release_ci.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Linux becomes the third platform in Release and Promote, with the same gates as macOS and Windows. It stays skipped until
linux/release.jsonhasappcastUrlandeddsaPublicKey, so merging this changes nothing until the one-time setup is done (specs/release_ci.md, step 5).+N(specs/linux_appimage.md, B4).set_version.shnow also clears the Linux appcast anddownloads/linux.json. Otherwise a macOS job that failed after the Linux upload would let the same number be handed out again, and Release would then skip Linux for the new commit.eddsaPublicKey. It also refuses a production feed at any URL other thanappcastUrl, since that is the URL every build compiles in. Every object read goes to the bucket origin.ubuntu-24.04job to pass; macOS and Windows don't wait on it..gitignorenow covers*.pemand/appcast*.xmlat the root.Evidence
flutter test test/tool→ 37 pass. That includes 11 new tests: Linux planning inrelease_plan.sh(skip when unconfigured, upload, skip when the sidecar exists, error when the number is taken in the appcast or indownloads/linux.json, promote/skip/error), andset_version.shclearing a build only the Linux feeds have seen.file://folder, the AppImage a stand-in that answers--appimage-extract, the key a throwaway test key, and every promote is--dry-run. Checked:downloads/linux.jsonwith a promoted build and a newer upload.release_plan.sh upload→ macOS and Windows skip as already uploaded; Linux skips whilelinux/release.jsonis empty. Apublish_downloads.sh --dry-runfor macOS gives the same output as before.make appimageon GitHub's runner, a real upload, and a promote to a staging bucket. The first real Release run is what shows whetherubuntu-24.04keeps the bundle at glibc 2.38; if not,build_appimage.shstops by design.Merge Danger
Door: two-way
The workflows and scripts can be reverted. The one-way steps come later and are done by people: the Linux key, the feed URL in
linux/release.json, and the first promoted build number. Until those are set, Linux is skipped.Blast Radius: release-pipeline
Shared code was touched.
publish_downloads.shgets--platform(defaults to macOS, same output),set_version.shreads two more feeds (it can only pick a higher number), andrelease.yml/promote.ymlget new outputs and jobs. Promote's platform choicebothis nowall.To do after merging: confirm the feed URL, create the key (step 5 of
specs/release_ci.md), then commitlinux/release.jsontogether with a version bump. Without the bump, the first Linux upload would carry the version macOS already shipped.🤖 Generated with Claude Code