Skip to content
TypeScript

fix(mobile): make test builds optional and preserve APK releases (#20092)

Julius Marminge83d65833006f
diff --git a/.github/scripts/mirror-play-apk.cjs b/.github/scripts/mirror-play-apk.cjs
index 773f90e76dc..0ee6e4664e9 100644
--- a/.github/scripts/mirror-play-apk.cjs
+++ b/.github/scripts/mirror-play-apk.cjs
@@ -1,5 +1,5 @@
-// Mirrors the newest build on a Google Play track to a rolling GitHub
-// prerelease as a universal APK. Play generates and signs that APK from the
+// Publishes closed-testing betas, or downloads the internal APK for a normal
+// nightly release. Play generates and signs the APK from the
// uploaded bundle with the app signing key, so it carries the same signature
// as the Play Store install. Run by .github/workflows/mobile-android-apk.yml.
const { execFileSync } = require("node:child_process");
@@ -77,43 +77,57 @@ function gh(...args) {
function readRelease(tag) {
try {
- return JSON.parse(gh("release", "view", tag, "--json", "assets,body"));
+ return JSON.parse(gh("release", "view", tag, "--json", "assets,body,isDraft"));
} catch {
return undefined;
}
}
-// Downloads the build's universal APK and uploads it, creating the release on
-// first use. Returns false when Play lists no universal APK, which happens
-// while it is still processing a fresh upload.
-async function uploadApk({ token, appUrl, build, tag, apkName, notes, title, release }) {
+// Download to a temporary directory so a failed request cannot leave a partial
+// APK among the release assets.
+async function downloadApk({ token, appUrl, build, apkName }) {
const generated = await (
await play(token, "GET", `${appUrl}/generatedApks/${build.versionCode}`)
).json();
- // One entry per app signing key. More than one means a key rotation, so
- // fail rather than guess which signature testers should get.
const universal = (generated.generatedApks ?? []).filter((entry) => entry.generatedUniversalApk);
- if (universal.length === 0) return false;
+ if (universal.length === 0) return undefined;
if (universal.length > 1) {
throw new Error(`Play returned ${universal.length} universal APKs, one per signing key.`);
}
const { downloadId } = universal[0].generatedUniversalApk;
+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), "apk-"));
+ const apkPath = path.join(directory, apkName);
+ try {
+ const download = await play(
+ token,
+ "GET",
+ `${appUrl}/generatedApks/${build.versionCode}/downloads/${encodeURIComponent(downloadId)}:download?alt=media`,
+ );
+ await pipeline(Readable.fromWeb(download.body), fs.createWriteStream(apkPath));
+ return apkPath;
+ } catch (error) {
+ fs.rmSync(directory, { recursive: true, force: true });
+ throw error;
+ }
+}
- const apkPath = path.join(fs.mkdtempSync(path.join(os.tmpdir(), "apk-")), apkName);
- const download = await play(
- token,
- "GET",
- `${appUrl}/generatedApks/${build.versionCode}/downloads/${encodeURIComponent(downloadId)}:download?alt=media`,
- );
- await pipeline(Readable.fromWeb(download.body), fs.createWriteStream(apkPath));
-
+function publishBeta(tag, apkPath, notes, title) {
+ const release = readRelease(tag);
+ if (
+ release &&
+ !release.isDraft &&
+ release.assets.some(
+ (asset) =>
+ asset.name === path.basename(apkPath) && asset.state === "uploaded" && asset.size > 0,
+ )
+ )
+ return;
if (!release) {
- // Prerelease with a non-v tag: release.yml, the desktop updater, the CLI,
- // and the marketing site's latest-release lookup all ignore it.
gh(
"release",
"create",
tag,
+ "--draft",
"--prerelease",
"--latest=false",
"--title",
@@ -122,106 +136,92 @@ async function uploadApk({ token, appUrl, build, tag, apkName, notes, title, rel
notes,
);
}
- // --clobber replaces an asset a failed upload left behind.
gh("release", "upload", tag, apkPath, "--clobber");
- return true;
+ gh(
+ "release",
+ "edit",
+ tag,
+ "--draft=false",
+ "--prerelease",
+ "--latest=false",
+ "--title",
+ title,
+ "--notes",
+ notes,
+ );
}
async function main() {
const packageName = requireEnv("PACKAGE_NAME");
- const tag = requireEnv("RELEASE_TAG");
- const title = "T3 Code for Android (testing)";
- const key = JSON.parse(requireEnv("GOOGLE_PLAY_SERVICE_ACCOUNT_JSON"));
- const summary = (line) =>
- process.env.GITHUB_STEP_SUMMARY &&
- fs.appendFileSync(process.env.GITHUB_STEP_SUMMARY, `${line}\n`);
-
- const token = await playAccessToken(key);
+ const outputDirectory = process.env.APK_OUTPUT_DIR;
+ const channel = outputDirectory ? "internal" : "beta";
+ const track = outputDirectory ? "internal" : "alpha";
+ const token = await playAccessToken(JSON.parse(requireEnv("GOOGLE_PLAY_SERVICE_ACCOUNT_JSON")));
const appUrl = `${PLAY_API}/${packageName}`;
- let release = readRelease(tag);
- const assets = release?.assets ?? [];
- const sections = [];
- for (const { track, channel, label, stability } of [
- {
- track: "alpha",
- channel: "beta",
- label: "Beta",
- stability:
- "Promoted for wider testing. Recommended over internal builds, but may still contain bugs.",
- },
- {
- track: "internal",
- channel: "internal",
- label: "Internal",
- stability: "Newest, less-tested builds. May contain serious bugs.",
- },
- ]) {
- const prefix = `t3code-android-${channel}-`;
- let available = assets.filter(
- (asset) => asset.name.startsWith(prefix) && asset.state === "uploaded" && asset.size > 0,
+ const build = await newestTrackBuild(token, appUrl, track);
+ if (!build) {
+ console.log(`The ${track} track has no live release.`);
+ return;
+ }
+ const safeName = build.versionName.replace(/[^0-9A-Za-z.]+/g, "-").replace(/^-|-$/g, "");
+ const apkName = `t3code-android-${channel}-${safeName}-${build.versionCode}.apk`;
+ const tag = outputDirectory ? undefined : requireEnv("RELEASE_TAG");
+ const snapshotTag = `android-beta-${build.versionCode}`;
+ const release = tag ? readRelease(tag) : undefined;
+ const snapshot = tag ? readRelease(snapshotTag) : undefined;
+ const hasApk = (value) =>
+ value &&
+ !value.isDraft &&
+ value.assets.some(
+ (asset) => asset.name === apkName && asset.state === "uploaded" && asset.size > 0,
);
- const build = await newestTrackBuild(token, appUrl, track);
- if (build) {
- const safeName = build.versionName.replace(/[^0-9A-Za-z.]+/g, "-").replace(/^-|-$/g, "");
- const apkName = `${prefix}${safeName}-${build.versionCode}.apk`;
- const published = assets.some(
- (asset) => asset.name === apkName && asset.state === "uploaded" && asset.size > 0,
- );
- if (
- published ||
- (await uploadApk({
- token,
- appUrl,
- build,
- tag,
- apkName,
- notes: "Android testing APKs. Release notes are being updated.",
- title,
- release,
- }))
- ) {
- release ??= { assets: [], body: "" };
- available = [{ name: apkName }];
- summary(`Published or verified \`${apkName}\` on \`${tag}\`.`);
- // Clean up only this track after its replacement is available. Retire
- // the legacy unlabelled APK when the beta replacement is published.
- for (const stale of assets) {
- const belongsToTrack =
- stale.name.startsWith(prefix) ||
- (track === "alpha" && /^t3code-android-(?!beta-|internal-).*\.apk$/.test(stale.name));
- if (belongsToTrack && stale.name.endsWith(".apk") && stale.name !== apkName) {
- gh("release", "delete-asset", tag, stale.name, "--yes");
- }
- }
- } else {
- summary(
- `Play is still processing the ${track} APK for ${build.versionCode}; keeping the previous download.`,
- );
+ const pruneBetaAssets = () => {
+ for (const stale of release?.assets ?? []) {
+ if (stale.name.endsWith(".apk") && stale.name !== apkName) {
+ gh("release", "delete-asset", tag, stale.name, "--yes");
}
}
- sections.push(
- `## ${label}`,
- "",
- stability,
- "",
- ...available.map(
- (asset) =>
- `- [${asset.name}](https://github.com/${requireEnv("GH_REPO")}/releases/download/${tag}/${asset.name})`,
- ),
- ...(available.length ? [] : ["No APK available yet."]),
+ };
+ if (hasApk(release) && hasApk(snapshot)) {
+ pruneBetaAssets();
+ console.log(`${apkName} is already published.`);
+ return;
+ }
+ const apkPath = await downloadApk({ token, appUrl, build, apkName });
+ if (!apkPath) {
+ console.log(`Play is still processing the ${track} APK for ${build.versionCode}.`);
+ return;
+ }
+ try {
+ if (outputDirectory) {
+ fs.mkdirSync(outputDirectory, { recursive: true });
+ const destination = path.join(outputDirectory, apkName);
+ const temporary = `${destination}.tmp`;
+ try {
+ fs.copyFileSync(apkPath, temporary);
+ fs.renameSync(temporary, destination);
+ } finally {
+ fs.rmSync(temporary, { force: true });
+ }
+ return;
+ }
+ const notes = [
+ `T3 Code for Android beta, mirrored from Google Play closed testing. Build: ${build.versionName} (${build.versionCode}).`,
"",
+ "These builds have been promoted for wider testing, but may still contain bugs. The beta is optional; the store app also works with Nightly servers.",
+ ].join("\n");
+ // Publish the versioned beta first, then advance the stable download page.
+ // The build number makes retries and unchanged hourly checks idempotent.
+ publishBeta(
+ snapshotTag,
+ apkPath,
+ notes,
+ `Android beta ${build.versionName} (${build.versionCode})`,
);
- }
- if (!release) return;
- const notes = [
- "T3 Code Android APKs mirrored from Google Play. Only the newest available APK from each track is kept here.",
- "",
- ...sections,
- ]
- .join("\n")
- .trim();
- if (release.body.replace(/\r\n/g, "\n").trim() !== notes) {
- gh("release", "edit", tag, "--title", title, "--notes", notes);
+ publishBeta(tag, apkPath, notes, "T3 Code for Android (beta)");
+ pruneBetaAssets();
+ } finally {
+ fs.rmSync(path.dirname(apkPath), { recursive: true, force: true });
}
}
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0d4b04133ce..4cf301db76c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -225,7 +225,7 @@ jobs:
- name: Test preview artifact validation
run: python3 -B .github/scripts/stage-preview-bundle.test.py
- - name: Test nightly release checks
+ - name: Test release checks
run: node --test .github/scripts/check-nightly-release.test.cjs
- name: Finish installing browser secret helper build libraries
diff --git a/.github/workflows/mobile-android-apk.yml b/.github/workflows/mobile-android-apk.yml
index 330ed8e45fd..db23758b2bf 100644
--- a/.github/workflows/mobile-android-apk.yml
+++ b/.github/workflows/mobile-android-apk.yml
@@ -1,12 +1,7 @@
name: Mobile Android APK
-# Publishes the newest Alpha and internal-testing Android builds as a sideloadable APK
-# on the rolling "android-nightly" prerelease for users who can't join
-# the Play testing group. Play re-signs uploaded bundles with the app signing
-# key, so its universal APK matches the Play Store install and needs no signing
-# secrets here. EAS submits asynchronously (--no-wait), so this polls Play
-# instead of chaining off mobile-eas-production.yml; runs with nothing new exit
-# early.
+# Checks closed testing hourly. New beta builds get a versioned prerelease and
+# update the android-beta download page. Unchanged checks publish nothing.
on:
schedule:
# Avoid minute zero, when GitHub scheduled jobs are busiest.
@@ -19,14 +14,14 @@ concurrency:
jobs:
mirror:
- name: Mirror Play APKs
+ name: Mirror beta APK
runs-on: blacksmith-2vcpu-ubuntu-2404
timeout-minutes: 10
permissions:
contents: write
env:
PACKAGE_NAME: com.t3tools.t3code
- RELEASE_TAG: android-nightly
+ RELEASE_TAG: android-beta
steps:
- id: credentials
name: Check for Play credentials
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index fb4927a86bd..201312f589c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -807,6 +807,18 @@ jobs:
merge-multiple: true
path: release-assets
+ - name: Download internal Android APK for Nightly
+ if: needs.preflight.outputs.release_channel == 'nightly'
+ continue-on-error: true
+ env:
+ GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
+ PACKAGE_NAME: com.t3tools.t3code
+ APK_OUTPUT_DIR: release-assets
+ run: |
+ if [ -n "$GOOGLE_PLAY_SERVICE_ACCOUNT_JSON" ]; then
+ node .github/scripts/mirror-play-apk.cjs
+ fi
+
# Installers verify archives against this file, so it is written from the
# signed bytes that get uploaded, never from an earlier stage.
- name: Write CLI archive checksums
@@ -888,6 +900,10 @@ jobs:
echo 'release-assets/*.yml'
fi
echo 'release-assets/*.tar.gz'
+ # Only list APKs when Play has a processed internal build available.
+ for apk in release-assets/*.apk; do
+ [[ -f "$apk" ]] && echo "$apk"
+ done
echo 'release-assets/SHA256SUMS'
echo 'EOF'
} >> "$GITHUB_OUTPUT"
diff --git a/apps/web/src/components/NightlyMobileBeta.tsx b/apps/web/src/components/NightlyMobileBeta.tsx
deleted file mode 100644
index 1059834d16b..00000000000
--- a/apps/web/src/components/NightlyMobileBeta.tsx
+++ /dev/null
@@ -1,150 +0,0 @@
-import { parseSemver } from "@t3tools/shared/semver";
-import { useNavigate } from "@tanstack/react-router";
-import * as Schema from "effect/Schema";
-import { SmartphoneIcon } from "lucide-react";
-import { useEffect } from "react";
-
-import { APP_VERSION, HOSTED_APP_CHANNEL } from "../branding";
-import { useCopyToClipboard } from "../hooks/useCopyToClipboard";
-import { getLocalStorageItem, setLocalStorageItem } from "../hooks/useLocalStorage";
-import { AndroidIcon, AppleIcon } from "./Icons";
-import { SettingsRow } from "./settings/settingsLayout";
-import { Button } from "./ui/button";
-import { Popover, PopoverPopup, PopoverTitle, PopoverTrigger } from "./ui/popover";
-import { QRCodeSvg } from "./ui/qr-code";
-import { toastManager } from "./ui/toast";
-
-// Orchestrator V2 ships to Nightly first. The App Store and Google Play apps are
-// still V1 and cannot connect to a V2 server, so Nightly users need the V2 beta
-// app. Delete this file when the store apps move to V2. See #14871.
-
-/** True on Nightly desktop, `npx t3@nightly`, and the hosted Nightly app. */
-export const IS_NIGHTLY_BUILD =
- parseSemver(APP_VERSION)?.prerelease[0] === "nightly" || HOSTED_APP_CHANNEL === "nightly";
-
-const IOS_TESTFLIGHT_URL = "https://testflight.apple.com/join/XgaxaRtd";
-// Google banned the Play testing group, so new testers can't join it. CI mirrors
-// the Play-signed beta APK to this release instead (mobile-android-apk.yml).
-const ANDROID_APK_RELEASE_URL = "https://github.com/pingdotgg/t3code/releases/tag/android-nightly";
-
-const ROW_ID = "nightly-mobile-beta";
-const NOTICE_DISMISSED_STORAGE_KEY = "t3code:nightly-mobile-beta-notice-dismissed:v1";
-
-// Guards against a second toast from a remount or a Strict Mode effect replay.
-let noticeShown = false;
-
-function isNoticeDismissed(): boolean {
- try {
- return getLocalStorageItem(NOTICE_DISMISSED_STORAGE_KEY, Schema.Boolean) === true;
- } catch {
- return false;
- }
-}
-
-function dismissNotice() {
- try {
- setLocalStorageItem(NOTICE_DISMISSED_STORAGE_KEY, true, Schema.Boolean);
- } catch {
- // Storage is unavailable. The notice shows again on the next launch.
- }
-}
-
-/**
- * One-time Nightly toast that points to the beta mobile app. Any close (the
- * corner button, swipe, Dismiss, or the action) hides it for good on this client.
- */
-export function NightlyMobileBetaNotice() {
- const navigate = useNavigate();
-
- useEffect(() => {
- if (!IS_NIGHTLY_BUILD || noticeShown || isNoticeDismissed()) return;
- noticeShown = true;
- const toastId = toastManager.add({
- title: "Nightly needs the beta mobile app",
- description:
- "Nightly uses the new orchestrator. The App Store and Google Play versions of T3 Code cannot connect to it.",
- timeout: 0,
- onClose: dismissNotice,
- actionProps: {
- children: "Get the beta app",
- onClick: () => {
- toastManager.close(toastId);
- void navigate({ to: "/settings/general", hash: ROW_ID });
- },
- },
- data: {
- leadingIcon: <SmartphoneIcon className="size-4" />,
- actionLayout: "stacked-end",
- secondaryActionProps: {
- children: "Dismiss",
- onClick: () => toastManager.close(toastId),
- },
- secondaryActionVariant: "ghost",
- },
- });
- }, [navigate]);
-
- return null;
-}
-
-/** QR code plus a copy button for one beta link. */
-function BetaLinkQr({ url, label }: { url: string; label: string }) {
- const { copyToClipboard, isCopied } = useCopyToClipboard();
- return (
- <div className="flex flex-col items-center gap-2">
- <div className="rounded-lg bg-white p-1.5">
- <QRCodeSvg value={url} size={128} level="M" marginSize={1} title={label} />
- </div>
- <Button size="xs" variant="outline" onClick={() => copyToClipboard(url)}>
- {isCopied ? "Copied" : "Copy link"}
- </Button>
- </div>
- );
-}
-
-/** Settings → General → About row with the beta app links. Render it only for Nightly. */
-export function NightlyMobileBetaRow() {
- return (
- <SettingsRow
- id={ROW_ID}
- title="Mobile app"
- description="Nightly needs the beta app. The App Store and Google Play versions cannot connect."
- control={
- <div className="flex items-center gap-2">
- <Popover>
- <PopoverTrigger render={<Button size="sm" variant="outline" />}>
- <AppleIcon />
- iPhone
- </PopoverTrigger>
- <PopoverPopup align="end">
- <div className="flex flex-col gap-3">
- <div className="space-y-1">
- <PopoverTitle>TestFlight beta</PopoverTitle>
- <p className="text-xs text-muted-foreground">Scan with your iPhone camera.</p>
- </div>
- <BetaLinkQr url={IOS_TESTFLIGHT_URL} label="TestFlight beta link" />
- </div>
- </PopoverPopup>
- </Popover>
- <Popover>
- <PopoverTrigger render={<Button size="sm" variant="outline" />}>
- <AndroidIcon />
- Android
- </PopoverTrigger>
- <PopoverPopup align="end">
- <div className="flex flex-col gap-3">
- <div className="space-y-1">
- <PopoverTitle>Android beta APK</PopoverTitle>
- <p className="max-w-56 text-xs text-muted-foreground">
- Scan with your phone, then download and install the APK.
- </p>
- </div>
- <BetaLinkQr url={ANDROID_APK_RELEASE_URL} label="Android beta APK link" />
- </div>
- </PopoverPopup>
- </Popover>
- </div>
- }
- />
- );
-}
diff --git a/apps/web/src/components/settings/SettingsPanels.tsx b/apps/web/src/components/settings/SettingsPanels.tsx
index f1825032c50..ba243ef7a03 100644
--- a/apps/web/src/components/settings/SettingsPanels.tsx
+++ b/apps/web/src/components/settings/SettingsPanels.tsx
@@ -55,7 +55,6 @@ import * as Duration from "effect/Duration";
import * as Equal from "effect/Equal";
import * as Schema from "effect/Schema";
import { APP_VERSION, HOSTED_APP_CHANNEL, HOSTED_APP_CHANNEL_LABEL } from "../../branding";
-import { IS_NIGHTLY_BUILD, NightlyMobileBetaRow } from "../NightlyMobileBeta";
import { CliCommandSettingsRow } from "./CliCommandSettingsRow";
import {
canCheckForUpdate,
@@ -287,9 +286,6 @@ function AboutVersionSection() {
const hasDesktopBridge = typeof window !== "undefined" && Boolean(window.desktopBridge);
const selectedUpdateChannel = updateState?.channel ?? "latest";
const selectedHostedAppChannel = hasDesktopBridge ? null : HOSTED_APP_CHANNEL;
- // Show the beta app links as soon as someone picks Nightly, before the update installs.
- const showNightlyMobileBeta =
- IS_NIGHTLY_BUILD || (hasDesktopBridge && selectedUpdateChannel === "nightly");
const handleUpdateChannelChange = useCallback(
(channel: DesktopUpdateChannel) => {
@@ -511,7 +507,6 @@ function AboutVersionSection() {
}
/>
) : null}
- {showNightlyMobileBeta ? <NightlyMobileBetaRow /> : null}
{hasDesktopBridge ? <CliCommandSettingsRow /> : null}
</>
);
@@ -3386,7 +3381,6 @@ export function GeneralSettingsPanel() {
title={<AboutVersionTitle />}
description="Current version of the application."
/>
- {IS_NIGHTLY_BUILD ? <NightlyMobileBetaRow /> : null}
</>
)}
<SettingsRow
diff --git a/apps/web/src/routes/__root.tsx b/apps/web/src/routes/__root.tsx
index cc81cd233b0..cd2a49a3fdf 100644
--- a/apps/web/src/routes/__root.tsx
+++ b/apps/web/src/routes/__root.tsx
@@ -31,7 +31,6 @@ import { DesktopWebLinkCoordinator } from "../components/desktop/DesktopWebLinkC
import { RunningThreadKeepAlive } from "../components/desktop/RunningThreadKeepAlive";
import { ProviderUpdateLaunchNotification } from "../components/ProviderUpdateLaunchNotification";
import { DesktopUpdateLaunchNotice } from "../components/sidebar/updateEverythingRun";
-import { NightlyMobileBetaNotice } from "../components/NightlyMobileBeta";
import { LegacyThreadMigrationToast } from "../components/LegacyThreadMigrationToast";
import { ThreadNotificationCoordinator } from "../components/ThreadNotificationCoordinator";
import { ReopenClosedViewShortcut } from "../components/ReopenClosedViewShortcut";
@@ -267,8 +266,6 @@ function RootRouteView() {
) : null}
{primaryEnvironmentAuthenticated ? <ProviderUpdateLaunchNotification /> : null}
{isElectron ? <DesktopUpdateLaunchNotice /> : null}
- {/* Hosted Nightly is "hosted-static", not authenticated, and needs it too. */}
- <NightlyMobileBetaNotice />
{appShell}
{/* Above the router: a theme draft is judged by walking the app, so the
editor has to survive navigation away from settings. */}
diff --git a/docs/operations/release.md b/docs/operations/release.md
index 825f0836ca0..c85ce8ee847 100644
--- a/docs/operations/release.md
+++ b/docs/operations/release.md
@@ -320,16 +320,18 @@ unreleased major and get its first beta build approved.
## Android APK mirror
-`.github/workflows/mobile-android-apk.yml` checks Google Play hourly and publishes the newest
-builds on two tracks for users who can't join the Play testing group:
-
-- `beta` follows Alpha closed testing, with builds promoted for wider testing.
-- `internal` follows internal testing, with newer, less-tested builds.
-
-Both APKs live in the `android-nightly` release, with `beta` or `internal` in each filename.
-Release notes describe their stability and link to each download. The mirror keeps only
-the newest available APK per track. Android submissions
-go to internal testing; the Alpha mirror updates after promotion to Alpha. The APK is the universal APK Play generates and signs from the
+`.github/workflows/mobile-android-apk.yml` checks the Google Play Alpha closed-testing
+track hourly. A new beta gets an `android-beta-<build-number>` prerelease and updates
+the `android-beta` download page. Both contain only the beta APK. Unchanged checks
+publish nothing, and interrupted draft uploads resume on the next check.
+
+Normal Nightly releases include the newest processed internal-testing APK available
+when the release publishes. Internal builds do not create separate Android releases.
+If Play credentials or a processed APK are unavailable, the Nightly can still publish
+without an APK. Android submissions continue to go to internal testing; promote a
+build to Alpha to publish it as a beta.
+
+The APK is the universal APK Play generates and signs from the
uploaded bundle, so no signing key lives in GitHub. The job skips itself until
`GOOGLE_PLAY_SERVICE_ACCOUNT_JSON` holds a Play service account key with the "Release to
production, exclude devices, and use Play App Signing" permission, which downloading generated
diff --git a/docs/user/install.md b/docs/user/install.md
index b883667949f..2625b133b2f 100644
--- a/docs/user/install.md
+++ b/docs/user/install.md
@@ -114,12 +114,11 @@ Install T3 Code from the
The phone connects to a server on another machine. Follow
[remote access](./remote-access.md) to link it through T3 Connect or a pairing URL.
-Nightly builds need the beta app. The store apps cannot connect to them. A Nightly build also
-shows these links as QR codes in **Settings → General → Mobile app**.
+The store apps work with both stable and Nightly servers. Test builds are optional:
-- **iPhone and iPad:** join the [TestFlight beta](https://testflight.apple.com/join/XgaxaRtd).
-- **Android:** download and install the APK from the
- [Android beta release](https://github.com/pingdotgg/t3code/releases/tag/android-nightly).
+- **iPhone and iPad:** TestFlight is invite-only.
+- **Android:** download an APK from the
+ [Android beta release](https://github.com/pingdotgg/t3code/releases/tag/android-beta).
If the app crashes during launch, open Settings → Diagnostics on the next launch
that succeeds. It lists startup crashes from the last 7 days with the error and