Releasing¶
Aether releases from .github/workflows/release.yml to a GitHub Release with the Android APK and AAB, a desktop jar per OS and a zipped web build. The release and the snapshots share their build jobs in .github/workflows/build-artifacts.yml.
Snapshots¶
.github/workflows/snapshot.yml runs after CI passes on a push to main. It refuses a commit that is not on main, builds it and moves the rolling snapshot prerelease and its tag to it in place, with files named X.Y.Z-SNAPSHOT-<sha> after the manifest version and notes that list the unreleased changelog. The release is titled Snapshot <label> (build <code>), and the update check counts only files named for the title's label, so the new files and update-notes.tsv go up first, then the retitle switches the check to them, then the previous build's files are deleted: the check never sees a title naming a file not yet uploaded. A snapshot is its own app, org.meshtastic.aether.snapshot labelled "Aether Snapshot" on Android, with its own deb package, macOS bundle id and Windows upgrade code, so it installs beside a release. A newer push cancels an older snapshot build. gh workflow run snapshot.yml --repo meshtastic/meshtastic-aether builds main on demand. Snapshots build against the meshtastic-sdk release the catalog pins, like every build.
Version¶
One version, X.Y.Z, lives in every platform manifest: versionName in androidApp/module.yaml, and MARKETING_VERSION and CURRENT_PROJECT_VERSION in iosApp/module.xcodeproj/project.pbxproj. scripts/version.sh writes them (set X.Y.Z), checks them (check X.Y.Z) and prints them (show). The iOS build number is MAJOR * 1000000 + MINOR * 1000 + PATCH, so it rises with every release. Desktop and web carry no version of their own.
Every CI build carries its label (X.Y.Z or X.Y.Z-SNAPSHOT-<sha>), its build code and its update channel: plugins/build-info writes them into BuildInfo from the AETHER_BUILD_* variables, and scripts/stamp-build.sh stamps the label and code into the Android manifest, and the application id and label of its channel: org.meshtastic.aether ("Aether") for a release, org.meshtastic.aether.snapshot ("Aether Snapshot") for a snapshot, and the committed org.meshtastic.aether.dev ("Aether Dev") for a dry run or a local build, so the three install side by side. The build code is the commit count of the built commit: it is the Android versionCode, so every build of a channel installs over the one before, and the update check compares it. A dry run is stamped with the dev channel, so its files never offer updates. The workflow creates the annotated vX.Y.Z tag, so nobody tags by hand.
Web deploys¶
Every snapshot deploys its web build to aether-snapshot.meshtastic.org (deploy-web in snapshot.yml), and a release dispatches web-stable.yml, which deploys the release's web zip to aether.meshtastic.org. Both go through .github/actions/vercel-deploy as prebuilt static output. Each job runs in a GitHub environment (aether-snapshot, aether-stable) that holds the VERCEL_TOKEN secret and the VERCEL_ORG_ID and VERCEL_PROJECT_ID variables for its Vercel project. The web build runs a pinned Binaryen wasm-opt -O3 over webApp.wasm before it is zipped (17 MB to 8.3 MB), with the newest wasm proposals disabled so current Chrome can compile it. To retry or roll back the stable site, run gh workflow run web-stable.yml --repo meshtastic/meshtastic-aether -f tag=vX.Y.Z.
Changelog¶
Changes add fragments to changelog.d/; CHANGELOG.md is only edited by the cut.
Secrets¶
The Android files are signed when these repository secrets exist, and ship unsigned with a warning otherwise: ANDROID_KEYSTORE_BASE64 (the release keystore, base64), ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS and ANDROID_KEY_PASSWORD.
Cutting a release¶
- Pick
X.Y.Z: a minor bump for new behavior, a patch for fixes only. Before 1.0 nothing is a promise. - On a branch, run
scripts/changelog.sh preview, thenscripts/changelog.sh cut X.Y.Z. It folds every fragment into## [Unreleased], deletes them and moves the section under a dated## [X.Y.Z]heading. It refuses an empty[Unreleased]. - Run
scripts/version.sh set X.Y.Z. - Commit
chore(release): X.Y.Z, signed off, open the PR and merge it. - Run
gh workflow run release.yml --repo meshtastic/meshtastic-aether -f version=X.Y.Z. Add-f dry_run=trueto build every artifact without tagging or releasing; a dry run can start from any branch. Pushing avX.Y.Ztag onmainruns the same workflow.
What the workflow checks, in order¶
- The version is
X.Y.Zand, unless it is a dry run, the commit is onmain. - Any existing
vX.Y.Ztag points at this commit. - Every manifest carries
X.Y.Z(scripts/version.sh check). scripts/changelog.sh notes X.Y.Zfinds a non-empty section. It becomes the GitHub Release body verbatim.- The whole CI workflow has passed on this commit, the iOS simulator tests included. It waits up to 90 minutes for a push or merge queue CI run of the commit and reuses one that passed with its iOS shards. When the passing run skipped the iOS shards, it runs CI itself; when every run failed, it stops. The artifacts build meanwhile. A dry run always runs CI itself, and a manual run with
-f skip_ci_check=truepublishes without the check, for a commit the maintainer vouches for. - It builds the release APK and AAB (and checks the APK's
versionName), a desktop executable jar on Linux and on macOS (each jar bundles its own OS's native libraries), a desktop installer on each matching runner (a deb on Linux, a dmg on macOS, an msi on Windows, fromscripts/package-desktop.sh), and the web build. - It tags
vX.Y.Z, signs the apt repository for the deb, and publishes the GitHub Release with every file. A dry run stops before this step and leaves the files as workflow artifacts.
The iOS app is not attached: an .ipa needs a signing identity and provisioning profile.
Updates¶
The app checks for updates through GitHub's releases API, with no manifest file: a release build reads releases/latest (which skips prereleases) and a snapshot reads releases/tags/snapshot. Each build follows only its own channel, since a snapshot and a release are separate apps. The release title carries the label and build code (Aether X.Y.Z (build N), Snapshot X.Y.Z-SNAPSHOT-<sha> (build N)), so keep that shape if a title is ever edited by hand; a title without it reads as a failed check. Each platform's file is the asset named aether-<label>-android.apk, -desktop-linux-x64.jar or -desktop-macos-arm64.jar, checked against the SHA-256 digest GitHub records on upload; an unsigned APK never matches, since Android refuses it over a signed install. Beside the files, update-notes.tsv (scripts/update-notes.sh) lists one changelog bullet per line with the build code it shipped in, so Settings > About can say what changed since the running build: a snapshot gives each changelog.d bullet the code of the first-parent commit that added its fragment (the newest 60), and a release gives every bullet of its section the release's code. A fragment folded away at a cut leaves the snapshot's notes, so a snapshot older than the cut sees only what landed after it. The notes are optional: a missing or malformed file shows no list and never fails the check. The API allows 60 unauthenticated requests an hour per address; the app checks daily, hourly after a failure. Android verifies the digest, the package name, the signing key and a higher versionCode before handing the APK to the system installer, and does nothing for a Play, F-Droid or Amazon install. The desktop jar verifies the digest, keeps the old jar as <jar>.bak, swaps the new one in and restarts. A deb is never replaced by the app: each release and the snapshot prerelease also carry a signed flat apt repository (Packages, Packages.gz, Release, InRelease, Release.gpg and the public key aether-archive-keyring.gpg, from scripts/apt-repo.sh), served from releases/latest/download/ for releases and releases/download/snapshot/ for snapshots, so an installed deb updates with apt (install). A snapshot deb's version carries the build code (X.Y.Z+N), so apt sees each one as newer. The repository is signed with the APT_SIGNING_KEY repository secret, an ASCII-armored private key with no passphrase; without it a build publishes with no apt repository and a warning. Changing the key strands every installed deb on the old one until its owner fetches the new keyring, so keep it. The Android build declares REQUEST_INSTALL_PACKAGES and UPDATE_PACKAGES_WITHOUT_USER_ACTION. Google Play restricts the first: an AAB uploaded to Play needs it removed.