runtime.allternit.com is the public domain of the R2 bucket allternit-runtime. Downloads are free, and CORS is set for ai.allternit.com and m.allternit.com. Two things are mirrored there so users don’t depend on GitHub or Hugging Face being reachable.
Voice packs
The voice service (services/voice/src/models.rs) downloads packs from https://runtime.allternit.com/voice-packs/v1/<file name>. Files are flat, with the same names and the same pinned sha256 as the upstream files. If the mirror returns 404, fails, or serves a file that fails the hash check, the service falls back to the upstream URL and logs the fallback once. Setting ALLTERNIT_VOICE_MODEL_BASE skips both and uses <base>/<asset path> alone.
To (re)populate the mirror after adding or changing a pinned file, keep the manifest in scripts/mirror-voice-packs.sh in sync with PACKS, then run:
Desktop installers
scripts/mirror-desktop-release.sh <version> copies the published Allternit/desktop release v<version> Linux packages (the .deb, the .rpm and the AppImage) to desktop/v<version>/, writes desktop/latest.json, and deletes every other desktop/v*, so only the current version is kept. Mac and Windows installers, auto-update zips, blockmaps and latest*.yml stay on GitHub only; the website download buttons and the Homebrew cask use GitHub releases. The Linux packages are what cloud computers’ updater and install.sh read, and keeping only those keeps the bucket small. By default it prints a plan; --apply uploads. Credentials come from R2_ENDPOINT, R2_ACCESS_KEY and R2_SECRET, and it needs an authenticated gh.
Cloud computers get new app versions from this mirror: an hourly job on each Incus host (infrastructure/computer-app-update/) installs the linux_deb_x64 package on every cloud computer whose app is older, when Gizzi runs no session, after a snapshot, and rolls back if the app doesn’t come back healthy. A release that isn’t mirrored never reaches cloud computers.
latest.json looks like {"version": "1.2.0", "assets": {"linux_deb_x64": "<url>", "linux_rpm_x64": "<url>", "linux_x64": "<AppImage url>", "linux_deb_arm64": "<url>", "linux_rpm_arm64": "<url>", "linux_arm64": "<AppImage url>"}}; the _arm64 slots hold the arm64 packages. The installer script (install.allternit.com) reads it first and falls back to the GitHub API and GitHub release URLs.
Release runbook step
After publishing a Desktop release on GitHub, runscripts/mirror-desktop-release.sh <version> --apply. Until it runs, the installer keeps resolving to the previous mirrored version or the GitHub release.
Runtime packages
Desktop and cloud computers updateallternit-api, gizzi-code, allternit-factory and the app’s screens from runtime.allternit.com without a new app build (surfaces/allternit-desktop/src/main/runtime-package.ts). The app checks stable/<platform>/latest.json (signed, Ed25519), downloads only the files whose hash changed (objects/<sha256>.gz, shared by every version and platform), and switches to the new version on its next start. A cloud computer has nobody to restart it, so while a new version waits it checks Gizzi every minute and restarts itself after two checks in a row with no session running (provisioned-runtime-apply.ts). It checks one minute after launch and then every six hours, one check at a time. A file download that receives no bytes for 60 seconds is aborted and retried (three tries); if it still fails, the check logs [Runtime] update check failed and the next check starts over.
A platform with no package published keeps the runtime its app was built with. Until 2026-10-07 that was true of every cloud computer: they ran the image’s runtime from 2026-09-14.
Publishing (
surfaces/allternit-desktop/scripts/runtime-package.cjs):
prune keeps the newest 3 manifests of every platform plus the one each latest.json names, and deletes the objects and manifests nothing kept uses. Objects are shared by every version and platform, so an object stays while any kept manifest on any platform references it. It refuses and deletes nothing when a kept manifest references a missing object, and it never touches desktop/, voice-packs/, voice-models/, phone-link/ or assets/. Nothing runs it on a schedule: publish --confirm prints the command to run by hand afterwards.
The packed binaries must be the target platform’s. A Linux package is packed on any machine with ALLTERNIT_RUNTIME_PLATFORM=linux-x64 and ALLTERNIT_RUNTIME_RESOURCES=<dir>, where <dir>/bin holds allternit-api, gizzi-code and allternit-factory built on Linux x64 (the build host is the alt-linux-build container on allternit-standby, sources in /srv/alt-build/src, script /srv/alt-build/rt.sh; allternit-factory needs Zig 0.15.2) and <dir>/platform holds the screens from npm run prepare:platform-static. The signing key stays on the publishing Mac (~/.config/allternit/runtime-signing-ed25519.pem).
Before you publish a linux-x64 runtime, stage the meeting bot (the Gizzi Meetings bot that runs on cloud computers). Run this from surfaces/allternit-desktop, with the same <dir> you pack from:
meeting-bot/ (the bot’s dist/runner.js and its production dependencies) and meeting-bot-native/linux-x64/ (the LiveKit native binding) under <dir>. runtime-package.cjs stamp and pack include both. A runtime package without it cannot run Meetings on that computer: the status check reports bot_missing, and Gizzi falls back to another computer or ends the call as no_runtime.