The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 23, 08:00 UTC
fix(mobile): make test builds optional and preserve APK releases (#20092)
Julius Marminge committed
Oct 15, 2026 at 18:16 UTC
83d65833006fa88ec73d3475fcf97ada90df4c53
9 files changed
+146
-293
.github/scripts/mirror-play-apk.cjs
+109
-109
@@ -1,5 +1,5 @@
1
-// Mirrors the newest build on a Google Play track to a rolling GitHub
2
-// prerelease as a universal APK. Play generates and signs that APK from the
1
+// Publishes closed-testing betas, or downloads the internal APK for a normal
2
+// nightly release. Play generates and signs the APK from the
3
// uploaded bundle with the app signing key, so it carries the same signature
4
// as the Play Store install. Run by .github/workflows/mobile-android-apk.yml.
5
const { execFileSync } = require("node:child_process");
@@ -77,43 +77,57 @@ function gh(...args) {
77
78
function readRelease(tag) {
79
try {
80
- return JSON.parse(gh("release", "view", tag, "--json", "assets,body"));
80
+ return JSON.parse(gh("release", "view", tag, "--json", "assets,body,isDraft"));
81
} catch {
82
return undefined;
83
}
84
}
85
86
-// Downloads the build's universal APK and uploads it, creating the release on
87
-// first use. Returns false when Play lists no universal APK, which happens
88
-// while it is still processing a fresh upload.
89
-async function uploadApk({ token, appUrl, build, tag, apkName, notes, title, release }) {
86
+// Download to a temporary directory so a failed request cannot leave a partial
87
+// APK among the release assets.
88
+async function downloadApk({ token, appUrl, build, apkName }) {
89
const generated = await (
90
await play(token, "GET", `${appUrl}/generatedApks/${build.versionCode}`)
91
).json();
93
- // One entry per app signing key. More than one means a key rotation, so
94
- // fail rather than guess which signature testers should get.
92
const universal = (generated.generatedApks ?? []).filter((entry) => entry.generatedUniversalApk);
96
- if (universal.length === 0) return false;
93
+ if (universal.length === 0) return undefined;
94
if (universal.length > 1) {
95
throw new Error(`Play returned ${universal.length} universal APKs, one per signing key.`);
96
}
97
const { downloadId } = universal[0].generatedUniversalApk;
98
+ const directory = fs.mkdtempSync(path.join(os.tmpdir(), "apk-"));
99
+ const apkPath = path.join(directory, apkName);
100
+ try {
101
+ const download = await play(
102
+ token,
103
+ "GET",
104
+ `${appUrl}/generatedApks/${build.versionCode}/downloads/${encodeURIComponent(downloadId)}:download?alt=media`,
105
+ );
106
+ await pipeline(Readable.fromWeb(download.body), fs.createWriteStream(apkPath));
107
+ return apkPath;
108
+ } catch (error) {
109
+ fs.rmSync(directory, { recursive: true, force: true });
110
+ throw error;
111
+ }
112
+}
113
102
- const apkPath = path.join(fs.mkdtempSync(path.join(os.tmpdir(), "apk-")), apkName);
103
- const download = await play(
104
- token,
105
- "GET",
106
- `${appUrl}/generatedApks/${build.versionCode}/downloads/${encodeURIComponent(downloadId)}:download?alt=media`,
107
- );
108
- await pipeline(Readable.fromWeb(download.body), fs.createWriteStream(apkPath));
109
-
114
+function publishBeta(tag, apkPath, notes, title) {
115
+ const release = readRelease(tag);
116
+ if (
117
+ release &&
118
+ !release.isDraft &&
119
+ release.assets.some(
120
+ (asset) =>
121
+ asset.name === path.basename(apkPath) && asset.state === "uploaded" && asset.size > 0,
122
+ )
123
+ )
124
+ return;
125
if (!release) {
111
- // Prerelease with a non-v tag: release.yml, the desktop updater, the CLI,
112
- // and the marketing site's latest-release lookup all ignore it.
126
gh(
127
"release",
128
"create",
129
tag,
130
+ "--draft",
131
"--prerelease",
132
"--latest=false",
133
"--title",
@@ -122,106 +136,92 @@ async function uploadApk({ token, appUrl, build, tag, apkName, notes, title, rel
136
notes,
137
);
138
}
125
- // --clobber replaces an asset a failed upload left behind.
139
gh("release", "upload", tag, apkPath, "--clobber");
127
- return true;
140
+ gh(
141
+ "release",
142
+ "edit",
143
+ tag,
144
+ "--draft=false",
145
+ "--prerelease",
146
+ "--latest=false",
147
+ "--title",
148
+ title,
149
+ "--notes",
150
+ notes,
151
+ );
152
}
153
154
async function main() {
155
const packageName = requireEnv("PACKAGE_NAME");
132
- const tag = requireEnv("RELEASE_TAG");
133
- const title = "T3 Code for Android (testing)";
134
- const key = JSON.parse(requireEnv("GOOGLE_PLAY_SERVICE_ACCOUNT_JSON"));
135
- const summary = (line) =>
136
- process.env.GITHUB_STEP_SUMMARY &&
137
- fs.appendFileSync(process.env.GITHUB_STEP_SUMMARY, `${line}\n`);
138
-
139
- const token = await playAccessToken(key);
156
+ const outputDirectory = process.env.APK_OUTPUT_DIR;
157
+ const channel = outputDirectory ? "internal" : "beta";
158
+ const track = outputDirectory ? "internal" : "alpha";
159
+ const token = await playAccessToken(JSON.parse(requireEnv("GOOGLE_PLAY_SERVICE_ACCOUNT_JSON")));
160
const appUrl = `${PLAY_API}/${packageName}`;
141
- let release = readRelease(tag);
142
- const assets = release?.assets ?? [];
143
- const sections = [];
144
- for (const { track, channel, label, stability } of [
145
- {
146
- track: "alpha",
147
- channel: "beta",
148
- label: "Beta",
149
- stability:
150
- "Promoted for wider testing. Recommended over internal builds, but may still contain bugs.",
151
- },
152
- {
153
- track: "internal",
154
- channel: "internal",
155
- label: "Internal",
156
- stability: "Newest, less-tested builds. May contain serious bugs.",
157
- },
158
- ]) {
159
- const prefix = `t3code-android-${channel}-`;
160
- let available = assets.filter(
161
- (asset) => asset.name.startsWith(prefix) && asset.state === "uploaded" && asset.size > 0,
161
+ const build = await newestTrackBuild(token, appUrl, track);
162
+ if (!build) {
163
+ console.log(`The ${track} track has no live release.`);
164
+ return;
165
+ }
166
+ const safeName = build.versionName.replace(/[^0-9A-Za-z.]+/g, "-").replace(/^-|-$/g, "");
167
+ const apkName = `t3code-android-${channel}-${safeName}-${build.versionCode}.apk`;
168
+ const tag = outputDirectory ? undefined : requireEnv("RELEASE_TAG");
169
+ const snapshotTag = `android-beta-${build.versionCode}`;
170
+ const release = tag ? readRelease(tag) : undefined;
171
+ const snapshot = tag ? readRelease(snapshotTag) : undefined;
172
+ const hasApk = (value) =>
173
+ value &&
174
+ !value.isDraft &&
175
+ value.assets.some(
176
+ (asset) => asset.name === apkName && asset.state === "uploaded" && asset.size > 0,
177
);
163
- const build = await newestTrackBuild(token, appUrl, track);
164
- if (build) {
165
- const safeName = build.versionName.replace(/[^0-9A-Za-z.]+/g, "-").replace(/^-|-$/g, "");
166
- const apkName = `${prefix}${safeName}-${build.versionCode}.apk`;
167
- const published = assets.some(
168
- (asset) => asset.name === apkName && asset.state === "uploaded" && asset.size > 0,
169
- );
170
- if (
171
- published ||
172
- (await uploadApk({
173
- token,
174
- appUrl,
175
- build,
176
- tag,
177
- apkName,
178
- notes: "Android testing APKs. Release notes are being updated.",
179
- title,
180
- release,
181
- }))
182
- ) {
183
- release ??= { assets: [], body: "" };
184
- available = [{ name: apkName }];
185
- summary(`Published or verified \`${apkName}\` on \`${tag}\`.`);
186
- // Clean up only this track after its replacement is available. Retire
187
- // the legacy unlabelled APK when the beta replacement is published.
188
- for (const stale of assets) {
189
- const belongsToTrack =
190
- stale.name.startsWith(prefix) ||
191
- (track === "alpha" && /^t3code-android-(?!beta-|internal-).*\.apk$/.test(stale.name));
192
- if (belongsToTrack && stale.name.endsWith(".apk") && stale.name !== apkName) {
193
- gh("release", "delete-asset", tag, stale.name, "--yes");
194
- }
195
- }
196
- } else {
197
- summary(
198
- `Play is still processing the ${track} APK for ${build.versionCode}; keeping the previous download.`,
199
- );
178
+ const pruneBetaAssets = () => {
179
+ for (const stale of release?.assets ?? []) {
180
+ if (stale.name.endsWith(".apk") && stale.name !== apkName) {
181
+ gh("release", "delete-asset", tag, stale.name, "--yes");
182
}
183
}
202
- sections.push(
203
- `## ${label}`,
204
- "",
205
- stability,
206
- "",
207
- ...available.map(
208
- (asset) =>
209
- `- [${asset.name}](https://github.com/${requireEnv("GH_REPO")}/releases/download/${tag}/${asset.name})`,
210
- ),
211
- ...(available.length ? [] : ["No APK available yet."]),
184
+ };
185
+ if (hasApk(release) && hasApk(snapshot)) {
186
+ pruneBetaAssets();
187
+ console.log(`${apkName} is already published.`);
188
+ return;
189
+ }
190
+ const apkPath = await downloadApk({ token, appUrl, build, apkName });
191
+ if (!apkPath) {
192
+ console.log(`Play is still processing the ${track} APK for ${build.versionCode}.`);
193
+ return;
194
+ }
195
+ try {
196
+ if (outputDirectory) {
197
+ fs.mkdirSync(outputDirectory, { recursive: true });
198
+ const destination = path.join(outputDirectory, apkName);
199
+ const temporary = `${destination}.tmp`;
200
+ try {
201
+ fs.copyFileSync(apkPath, temporary);
202
+ fs.renameSync(temporary, destination);
203
+ } finally {
204
+ fs.rmSync(temporary, { force: true });
205
+ }
206
+ return;
207
+ }
208
+ const notes = [
209
+ `T3 Code for Android beta, mirrored from Google Play closed testing. Build: ${build.versionName} (${build.versionCode}).`,
210
"",
211
+ "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.",
212
+ ].join("\n");
213
+ // Publish the versioned beta first, then advance the stable download page.
214
+ // The build number makes retries and unchanged hourly checks idempotent.
215
+ publishBeta(
216
+ snapshotTag,
217
+ apkPath,
218
+ notes,
219
+ `Android beta ${build.versionName} (${build.versionCode})`,
220
);
214
- }
215
- if (!release) return;
216
- const notes = [
217
- "T3 Code Android APKs mirrored from Google Play. Only the newest available APK from each track is kept here.",
218
- "",
219
- ...sections,
220
- ]
221
- .join("\n")
222
- .trim();
223
- if (release.body.replace(/\r\n/g, "\n").trim() !== notes) {
224
- gh("release", "edit", tag, "--title", title, "--notes", notes);
221
+ publishBeta(tag, apkPath, notes, "T3 Code for Android (beta)");
222
+ pruneBetaAssets();
223
+ } finally {
224
+ fs.rmSync(path.dirname(apkPath), { recursive: true, force: true });
225
}
226
}
227
.github/workflows/ci.yml
+1
-1
@@ -225,7 +225,7 @@ jobs:
225
- name: Test preview artifact validation
226
run: python3 -B .github/scripts/stage-preview-bundle.test.py
227
228
- - name: Test nightly release checks
228
+ - name: Test release checks
229
run: node --test .github/scripts/check-nightly-release.test.cjs
230
231
- name: Finish installing browser secret helper build libraries
.github/workflows/mobile-android-apk.yml
+4
-9
@@ -1,12 +1,7 @@
1
name: Mobile Android APK
2
3
-# Publishes the newest Alpha and internal-testing Android builds as a sideloadable APK
4
-# on the rolling "android-nightly" prerelease for users who can't join
5
-# the Play testing group. Play re-signs uploaded bundles with the app signing
6
-# key, so its universal APK matches the Play Store install and needs no signing
7
-# secrets here. EAS submits asynchronously (--no-wait), so this polls Play
8
-# instead of chaining off mobile-eas-production.yml; runs with nothing new exit
9
-# early.
3
+# Checks closed testing hourly. New beta builds get a versioned prerelease and
4
+# update the android-beta download page. Unchanged checks publish nothing.
5
on:
6
schedule:
7
# Avoid minute zero, when GitHub scheduled jobs are busiest.
@@ -19,14 +14,14 @@ concurrency:
14
15
jobs:
16
mirror:
22
- name: Mirror Play APKs
17
+ name: Mirror beta APK
18
runs-on: blacksmith-2vcpu-ubuntu-2404
19
timeout-minutes: 10
20
permissions:
21
contents: write
22
env:
23
PACKAGE_NAME: com.t3tools.t3code
29
- RELEASE_TAG: android-nightly
24
+ RELEASE_TAG: android-beta
25
steps:
26
- id: credentials
27
name: Check for Play credentials
.github/workflows/release.yml
+16
@@ -807,6 +807,18 @@ jobs:
807
merge-multiple: true
808
path: release-assets
809
810
+ - name: Download internal Android APK for Nightly
811
+ if: needs.preflight.outputs.release_channel == 'nightly'
812
+ continue-on-error: true
813
+ env:
814
+ GOOGLE_PLAY_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_PLAY_SERVICE_ACCOUNT_JSON }}
815
+ PACKAGE_NAME: com.t3tools.t3code
816
+ APK_OUTPUT_DIR: release-assets
817
+ run: |
818
+ if [ -n "$GOOGLE_PLAY_SERVICE_ACCOUNT_JSON" ]; then
819
+ node .github/scripts/mirror-play-apk.cjs
820
+ fi
821
+
822
# Installers verify archives against this file, so it is written from the
823
# signed bytes that get uploaded, never from an earlier stage.
824
- name: Write CLI archive checksums
@@ -888,6 +900,10 @@ jobs:
900
echo 'release-assets/*.yml'
901
fi
902
echo 'release-assets/*.tar.gz'
903
+ # Only list APKs when Play has a processed internal build available.
904
+ for apk in release-assets/*.apk; do
905
+ [[ -f "$apk" ]] && echo "$apk"
906
+ done
907
echo 'release-assets/SHA256SUMS'
908
echo 'EOF'
909
} >> "$GITHUB_OUTPUT"
apps/web/src/components/NightlyMobileBeta.tsx
deleted
-150
@@ -1,150 +0,0 @@
1
-import { parseSemver } from "@t3tools/shared/semver";
2
-import { useNavigate } from "@tanstack/react-router";
3
-import * as Schema from "effect/Schema";
4
-import { SmartphoneIcon } from "lucide-react";
5
-import { useEffect } from "react";
6
-
7
-import { APP_VERSION, HOSTED_APP_CHANNEL } from "../branding";
8
-import { useCopyToClipboard } from "../hooks/useCopyToClipboard";
9
-import { getLocalStorageItem, setLocalStorageItem } from "../hooks/useLocalStorage";
10
-import { AndroidIcon, AppleIcon } from "./Icons";
11
-import { SettingsRow } from "./settings/settingsLayout";
12
-import { Button } from "./ui/button";
13
-import { Popover, PopoverPopup, PopoverTitle, PopoverTrigger } from "./ui/popover";
14
-import { QRCodeSvg } from "./ui/qr-code";
15
-import { toastManager } from "./ui/toast";
16
-
17
-// Orchestrator V2 ships to Nightly first. The App Store and Google Play apps are
18
-// still V1 and cannot connect to a V2 server, so Nightly users need the V2 beta
19
-// app. Delete this file when the store apps move to V2. See #14871.
20
-
21
-/** True on Nightly desktop, `npx t3@nightly`, and the hosted Nightly app. */
22
-export const IS_NIGHTLY_BUILD =
23
- parseSemver(APP_VERSION)?.prerelease[0] === "nightly" || HOSTED_APP_CHANNEL === "nightly";
24
-
25
-const IOS_TESTFLIGHT_URL = "https://testflight.apple.com/join/XgaxaRtd";
26
-// Google banned the Play testing group, so new testers can't join it. CI mirrors
27
-// the Play-signed beta APK to this release instead (mobile-android-apk.yml).
28
-const ANDROID_APK_RELEASE_URL = "https://github.com/pingdotgg/t3code/releases/tag/android-nightly";
29
-
30
-const ROW_ID = "nightly-mobile-beta";
31
-const NOTICE_DISMISSED_STORAGE_KEY = "t3code:nightly-mobile-beta-notice-dismissed:v1";
32
-
33
-// Guards against a second toast from a remount or a Strict Mode effect replay.
34
-let noticeShown = false;
35
-
36
-function isNoticeDismissed(): boolean {
37
- try {
38
- return getLocalStorageItem(NOTICE_DISMISSED_STORAGE_KEY, Schema.Boolean) === true;
39
- } catch {
40
- return false;
41
- }
42
-}
43
-
44
-function dismissNotice() {
45
- try {
46
- setLocalStorageItem(NOTICE_DISMISSED_STORAGE_KEY, true, Schema.Boolean);
47
- } catch {
48
- // Storage is unavailable. The notice shows again on the next launch.
49
- }
50
-}
51
-
52
-/**
53
- * One-time Nightly toast that points to the beta mobile app. Any close (the
54
- * corner button, swipe, Dismiss, or the action) hides it for good on this client.
55
- */
56
-export function NightlyMobileBetaNotice() {
57
- const navigate = useNavigate();
58
-
59
- useEffect(() => {
60
- if (!IS_NIGHTLY_BUILD || noticeShown || isNoticeDismissed()) return;
61
- noticeShown = true;
62
- const toastId = toastManager.add({
63
- title: "Nightly needs the beta mobile app",
64
- description:
65
- "Nightly uses the new orchestrator. The App Store and Google Play versions of T3 Code cannot connect to it.",
66
- timeout: 0,
67
- onClose: dismissNotice,
68
- actionProps: {
69
- children: "Get the beta app",
70
- onClick: () => {
71
- toastManager.close(toastId);
72
- void navigate({ to: "/settings/general", hash: ROW_ID });
73
- },
74
- },
75
- data: {
76
- leadingIcon: <SmartphoneIcon className="size-4" />,
77
- actionLayout: "stacked-end",
78
- secondaryActionProps: {
79
- children: "Dismiss",
80
- onClick: () => toastManager.close(toastId),
81
- },
82
- secondaryActionVariant: "ghost",
83
- },
84
- });
85
- }, [navigate]);
86
-
87
- return null;
88
-}
89
-
90
-/** QR code plus a copy button for one beta link. */
91
-function BetaLinkQr({ url, label }: { url: string; label: string }) {
92
- const { copyToClipboard, isCopied } = useCopyToClipboard();
93
- return (
94
- <div className="flex flex-col items-center gap-2">
95
- <div className="rounded-lg bg-white p-1.5">
96
- <QRCodeSvg value={url} size={128} level="M" marginSize={1} title={label} />
97
- </div>
98
- <Button size="xs" variant="outline" onClick={() => copyToClipboard(url)}>
99
- {isCopied ? "Copied" : "Copy link"}
100
- </Button>
101
- </div>
102
- );
103
-}
104
-
105
-/** Settings → General → About row with the beta app links. Render it only for Nightly. */
106
-export function NightlyMobileBetaRow() {
107
- return (
108
- <SettingsRow
109
- id={ROW_ID}
110
- title="Mobile app"
111
- description="Nightly needs the beta app. The App Store and Google Play versions cannot connect."
112
- control={
113
- <div className="flex items-center gap-2">
114
- <Popover>
115
- <PopoverTrigger render={<Button size="sm" variant="outline" />}>
116
- <AppleIcon />
117
- iPhone
118
- </PopoverTrigger>
119
- <PopoverPopup align="end">
120
- <div className="flex flex-col gap-3">
121
- <div className="space-y-1">
122
- <PopoverTitle>TestFlight beta</PopoverTitle>
123
- <p className="text-xs text-muted-foreground">Scan with your iPhone camera.</p>
124
- </div>
125
- <BetaLinkQr url={IOS_TESTFLIGHT_URL} label="TestFlight beta link" />
126
- </div>
127
- </PopoverPopup>
128
- </Popover>
129
- <Popover>
130
- <PopoverTrigger render={<Button size="sm" variant="outline" />}>
131
- <AndroidIcon />
132
- Android
133
- </PopoverTrigger>
134
- <PopoverPopup align="end">
135
- <div className="flex flex-col gap-3">
136
- <div className="space-y-1">
137
- <PopoverTitle>Android beta APK</PopoverTitle>
138
- <p className="max-w-56 text-xs text-muted-foreground">
139
- Scan with your phone, then download and install the APK.
140
- </p>
141
- </div>
142
- <BetaLinkQr url={ANDROID_APK_RELEASE_URL} label="Android beta APK link" />
143
- </div>
144
- </PopoverPopup>
145
- </Popover>
146
- </div>
147
- }
148
- />
149
- );
150
-}
apps/web/src/components/settings/SettingsPanels.tsx
-6
@@ -55,7 +55,6 @@ import * as Duration from "effect/Duration";
55
import * as Equal from "effect/Equal";
56
import * as Schema from "effect/Schema";
57
import { APP_VERSION, HOSTED_APP_CHANNEL, HOSTED_APP_CHANNEL_LABEL } from "../../branding";
58
-import { IS_NIGHTLY_BUILD, NightlyMobileBetaRow } from "../NightlyMobileBeta";
58
import { CliCommandSettingsRow } from "./CliCommandSettingsRow";
59
import {
60
canCheckForUpdate,
@@ -287,9 +286,6 @@ function AboutVersionSection() {
286
const hasDesktopBridge = typeof window !== "undefined" && Boolean(window.desktopBridge);
287
const selectedUpdateChannel = updateState?.channel ?? "latest";
288
const selectedHostedAppChannel = hasDesktopBridge ? null : HOSTED_APP_CHANNEL;
290
- // Show the beta app links as soon as someone picks Nightly, before the update installs.
291
- const showNightlyMobileBeta =
292
- IS_NIGHTLY_BUILD || (hasDesktopBridge && selectedUpdateChannel === "nightly");
289
290
const handleUpdateChannelChange = useCallback(
291
(channel: DesktopUpdateChannel) => {
@@ -511,7 +507,6 @@ function AboutVersionSection() {
507
}
508
/>
509
) : null}
514
- {showNightlyMobileBeta ? <NightlyMobileBetaRow /> : null}
510
{hasDesktopBridge ? <CliCommandSettingsRow /> : null}
511
</>
512
);
@@ -3386,7 +3381,6 @@ export function GeneralSettingsPanel() {
3381
title={<AboutVersionTitle />}
3382
description="Current version of the application."
3383
/>
3389
- {IS_NIGHTLY_BUILD ? <NightlyMobileBetaRow /> : null}
3384
</>
3385
)}
3386
<SettingsRow
apps/web/src/routes/__root.tsx
-3
@@ -31,7 +31,6 @@ import { DesktopWebLinkCoordinator } from "../components/desktop/DesktopWebLinkC
31
import { RunningThreadKeepAlive } from "../components/desktop/RunningThreadKeepAlive";
32
import { ProviderUpdateLaunchNotification } from "../components/ProviderUpdateLaunchNotification";
33
import { DesktopUpdateLaunchNotice } from "../components/sidebar/updateEverythingRun";
34
-import { NightlyMobileBetaNotice } from "../components/NightlyMobileBeta";
34
import { LegacyThreadMigrationToast } from "../components/LegacyThreadMigrationToast";
35
import { ThreadNotificationCoordinator } from "../components/ThreadNotificationCoordinator";
36
import { ReopenClosedViewShortcut } from "../components/ReopenClosedViewShortcut";
@@ -267,8 +266,6 @@ function RootRouteView() {
266
) : null}
267
{primaryEnvironmentAuthenticated ? <ProviderUpdateLaunchNotification /> : null}
268
{isElectron ? <DesktopUpdateLaunchNotice /> : null}
270
- {/* Hosted Nightly is "hosted-static", not authenticated, and needs it too. */}
271
- <NightlyMobileBetaNotice />
269
{appShell}
270
{/* Above the router: a theme draft is judged by walking the app, so the
271
editor has to survive navigation away from settings. */}
docs/operations/release.md
+12
-10
@@ -320,16 +320,18 @@ unreleased major and get its first beta build approved.
320
321
## Android APK mirror
322
323
-`.github/workflows/mobile-android-apk.yml` checks Google Play hourly and publishes the newest
324
-builds on two tracks for users who can't join the Play testing group:
325
-
326
-- `beta` follows Alpha closed testing, with builds promoted for wider testing.
327
-- `internal` follows internal testing, with newer, less-tested builds.
328
-
329
-Both APKs live in the `android-nightly` release, with `beta` or `internal` in each filename.
330
-Release notes describe their stability and link to each download. The mirror keeps only
331
-the newest available APK per track. Android submissions
332
-go to internal testing; the Alpha mirror updates after promotion to Alpha. The APK is the universal APK Play generates and signs from the
323
+`.github/workflows/mobile-android-apk.yml` checks the Google Play Alpha closed-testing
324
+track hourly. A new beta gets an `android-beta-<build-number>` prerelease and updates
325
+the `android-beta` download page. Both contain only the beta APK. Unchanged checks
326
+publish nothing, and interrupted draft uploads resume on the next check.
327
+
328
+Normal Nightly releases include the newest processed internal-testing APK available
329
+when the release publishes. Internal builds do not create separate Android releases.
330
+If Play credentials or a processed APK are unavailable, the Nightly can still publish
331
+without an APK. Android submissions continue to go to internal testing; promote a
332
+build to Alpha to publish it as a beta.
333
+
334
+The APK is the universal APK Play generates and signs from the
335
uploaded bundle, so no signing key lives in GitHub. The job skips itself until
336
`GOOGLE_PLAY_SERVICE_ACCOUNT_JSON` holds a Play service account key with the "Release to
337
production, exclude devices, and use Play App Signing" permission, which downloading generated
docs/user/install.md
+4
-5
@@ -114,12 +114,11 @@ Install T3 Code from the
114
The phone connects to a server on another machine. Follow
115
[remote access](./remote-access.md) to link it through T3 Connect or a pairing URL.
116
117
-Nightly builds need the beta app. The store apps cannot connect to them. A Nightly build also
118
-shows these links as QR codes in **Settings → General → Mobile app**.
117
+The store apps work with both stable and Nightly servers. Test builds are optional:
118
120
-- **iPhone and iPad:** join the [TestFlight beta](https://testflight.apple.com/join/XgaxaRtd).
121
-- **Android:** download and install the APK from the
122
- [Android beta release](https://github.com/pingdotgg/t3code/releases/tag/android-nightly).
119
+- **iPhone and iPad:** TestFlight is invite-only.
120
+- **Android:** download an APK from the
121
+ [Android beta release](https://github.com/pingdotgg/t3code/releases/tag/android-beta).
122
123
If the app crashes during launch, open Settings → Diagnostics on the next launch
124
that succeeds. It lists startup crashes from the last 7 days with the error and