Skip to content

feat: Builds, uploads and promotes the Linux AppImage in the release workflows - #17

Merged
SandPod merged 1 commit into
mainfrom
linux/release-pipeline
Dec 3, 2026
Merged

SandPod merged 1 commit into
mainfrom
linux/release-pipeline

Conversation

@SandPod

@SandPod SandPod commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Linux becomes the third platform in Release and Promote, with the same gates as macOS and Windows. It stays skipped until linux/release.json has appcastUrl and eddsaPublicKey, so merging this changes nothing until the one-time setup is done (specs/release_ci.md, step 5).

 release.yml (after CI passes on main)
   plan            tool/release_plan.sh upload
+    linux         skip | upload | error, from pubspec's X.Y.Z+N
   macos / windows
+  linux           ubuntu-24.04: make appimage
+    tool/linux/publish_release.sh     immutable object + .sha256, gates
+      tool/publish_downloads.sh --platform=linux   preview entry

 promote.yml (by hand, production reviewer)
   plan            platforms: all | macos | windows | linux
   macos / windows
+  linux           tool/linux/promote_release.sh --key=$RUNNER_TEMP/…
+    download from origin, check the sidecar, chmod +x
+    appcast.sh    sign, verify against linux/release.json, insert newest first
+    upload appcast/linux/appcast.xml (max-age=300), invalidate the CDN
+    publish_downloads.sh --platform=linux        latest entry
   tag             tag message names the Linux build once configured
releases/linux/X.Y.Z/bN/AppStudio-X.Y.Z-x86_64.AppImage   immutable, + .sha256
appcast/linux/appcast.xml                                  mutable, max-age=300
downloads/linux.json                                       mutable, max-age=60
  • One build counter. Linux uses pubspec's +N (specs/linux_appimage.md, B4). set_version.sh now also clears the Linux appcast and downloads/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.
  • What promote refuses before signing. It refuses a key whose public half isn't eddsaPublicKey. It also refuses a production feed at any URL other than appcastUrl, since that is the URL every build compiles in. Every object read goes to the bucket origin.
  • A gate of its own for Linux. The Linux upload also needs CI's ubuntu-24.04 job to pass; macOS and Windows don't wait on it.
  • Rule 6. .gitignore now covers *.pem and /appcast*.xml at the root.

Evidence

  • Tool tests: flutter test test/tool → 37 pass. That includes 11 new tests: Linux planning in release_plan.sh (skip when unconfigured, upload, skip when the sidecar exists, error when the number is taken in the appcast or in downloads/linux.json, promote/skip/error), and set_version.sh clearing a build only the Linux feeds have seen.
  • End to end, Ubuntu 24.04 container, OpenSSL 3.0.13: 22/22 checks pass. The bucket is a file:// folder, the AppImage a stand-in that answers --appimage-extract, the key a throwaway test key, and every promote is --dry-run. Checked:
    • the upload gates;
    • every refusal in promote (no key, key inside the checkout, wrong key, no shipped key, wrong feed URL, sidecar mismatch, not uploaded, build already passed);
    • a first feed, and an insert into a live one, with older items unchanged;
    • the signature, verified separately over the object in the bucket;
    • downloads/linux.json with a promoted build and a newer upload.
  • Production, read-only: release_plan.sh upload → macOS and Windows skip as already uploaded; Linux skips while linux/release.json is empty. A publish_downloads.sh --dry-run for macOS gives the same output as before.
  • Linters: actionlint reports no errors. Its two shellcheck notes are in code that was already there.
  • Not run yet: a real make appimage on GitHub's runner, a real upload, and a promote to a staging bucket. The first real Release run is what shows whether ubuntu-24.04 keeps the bundle at glibc 2.38; if not, build_appimage.sh stops 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.sh gets --platform (defaults to macOS, same output), set_version.sh reads two more feeds (it can only pick a higher number), and release.yml/promote.yml get new outputs and jobs. Promote's platform choice both is now all.

To do after merging: confirm the feed URL, create the key (step 5 of specs/release_ci.md), then commit linux/release.json together with a version bump. Without the bump, the first Linux upload would carry the version macOS already shipped.

🤖 Generated with Claude Code

…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>
@SandPod
SandPod merged commit 091f793 into main Dec 3, 2026
8 checks passed
@SandPod
SandPod deleted the linux/release-pipeline branch December 3, 2026 20: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.

1 participant