Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

feat(app): give the app an About box and a reachable update check

Claudef210c83340b7
diff --git a/electron/about.test.ts b/electron/about.test.ts
new file mode 100644
index 000000000..962c3d7d9
--- /dev/null
+++ b/electron/about.test.ts
@@ -0,0 +1,44 @@
+import { describe, expect, it } from "vitest";
+import { type AboutFacts, COPYRIGHT, formatAboutDetail, WEBSITE_URL } from "./about";
+
+function facts(overrides: Partial<AboutFacts> = {}): AboutFacts {
+ return {
+ version: "1.9.6",
+ channel: "dmg",
+ platform: "darwin",
+ arch: "arm64",
+ electron: "41.2.1",
+ chrome: "138.0.7204.100",
+ node: "22.22.1",
+ ...overrides,
+ };
+}
+
+describe("formatAboutDetail", () => {
+ it("lays the runtime, the install and the project out one per line", () => {
+ expect(formatAboutDetail(facts())).toBe(
+ [
+ "Electron 41.2.1 · Chromium 138.0.7204.100 · Node 22.22.1",
+ "darwin arm64 · dmg",
+ WEBSITE_URL,
+ ].join("\n"),
+ );
+ });
+
+ // The macOS About panel prints the copyright in a field of its own, so a detail block that
+ // carried it would show it twice there. Every other surface appends it itself.
+ it("leaves the copyright line to the caller", () => {
+ expect(formatAboutDetail(facts())).not.toContain(COPYRIGHT);
+ });
+
+ // The channel is the whole reason a Store or Flathub copy shows no update item, so it has
+ // to be legible to whoever is reading the bug report rather than inferred from the platform.
+ it("names the install channel, not just the platform", () => {
+ expect(
+ formatAboutDetail(facts({ platform: "win32", arch: "x64", channel: "store" })),
+ ).toContain("win32 x64 · store");
+ expect(
+ formatAboutDetail(facts({ platform: "linux", arch: "x64", channel: "appimage" })),
+ ).toContain("linux x64 · appimage");
+ });
+});
diff --git a/electron/about.ts b/electron/about.ts
new file mode 100644
index 000000000..9a9af95ef
--- /dev/null
+++ b/electron/about.ts
@@ -0,0 +1,37 @@
+// What the About box says, kept out of the dialog that shows it. Every fact is passed in
+// rather than read from `app`/`process`, so the string can be pinned in a test from any
+// platform — the same reason install-channel.ts takes an `InstallProbe`.
+//
+// The install channel is in there deliberately: it is the single fact that explains why a
+// copy does or does not offer "Check for Updates" (see install-channel.ts), and the first
+// thing worth knowing about a bug report from a build we did not install ourselves.
+
+import type { InstallChannel } from "./install-channel";
+
+export const WEBSITE_URL = "https://getopenscreen.com";
+export const COPYRIGHT = "© OpenScreen contributors — MIT License";
+
+export interface AboutFacts {
+ version: string;
+ channel: InstallChannel;
+ platform: NodeJS.Platform;
+ arch: string;
+ electron: string;
+ chrome: string;
+ node: string;
+}
+
+/** The block under "Openscreen <version>". Untranslated on purpose: every line is a version
+ * number, a platform identifier or a URL, and a pasted bug report reads the same whatever
+ * locale the reporter runs.
+ *
+ * `COPYRIGHT` is deliberately NOT part of it: the macOS About panel has its own field for
+ * that line, and putting it here too would print it twice on the one platform that asked
+ * for it separately. The surface that shows the box adds it. */
+export function formatAboutDetail(facts: AboutFacts): string {
+ return [
+ `Electron ${facts.electron} · Chromium ${facts.chrome} · Node ${facts.node}`,
+ `${facts.platform} ${facts.arch} · ${facts.channel}`,
+ WEBSITE_URL,
+ ].join("\n");
+}
diff --git a/electron/electron-env.d.ts b/electron/electron-env.d.ts
index f75fe1f17..0b7f47025 100644
--- a/electron/electron-env.d.ts
+++ b/electron/electron-env.d.ts
@@ -386,6 +386,8 @@ interface Window {
quitApp: () => void;
setTitleBarOverlay: (color: string, symbolColor: string) => void;
getPlatform: () => string;
+ getAppInfo: () => Promise<{ version: string; canCheckForUpdates: boolean }>;
+ checkForUpdates: () => Promise<void>;
revealInFolder: (
filePath: string,
) => Promise<{ success: boolean; error?: string; message?: string }>;
diff --git a/electron/main.ts b/electron/main.ts
index b53f9107e..0abac41ea 100644
--- a/electron/main.ts
+++ b/electron/main.ts
@@ -4,6 +4,7 @@ import { fileURLToPath } from "node:url";
import {
app,
BrowserWindow,
+ clipboard,
dialog,
ipcMain,
Menu,
@@ -15,6 +16,7 @@ import {
Tray,
} from "electron";
import { ShortcutBinding } from "../src/lib/shortcuts";
+import { type AboutFacts, COPYRIGHT, formatAboutDetail } from "./about";
import {
blockedFromInstalling,
checkForSelfUpdate,
@@ -197,6 +199,17 @@ function setupApplicationMenu() {
role: "about",
label: mainT("common", "actions.about") || "About OpenScreen",
},
+ // Omitted entirely — here, in the Help menu and in the tray — where a package
+ // manager owns the update. See `canOfferUpdateCheck`.
+ ...(canOfferUpdateCheck()
+ ? [
+ { type: "separator" as const },
+ {
+ label: mainT("common", "actions.checkForUpdates") || "Check for Updates",
+ click: runUpdateCheck,
+ },
+ ]
+ : []),
{ type: "separator" },
{
role: "services",
@@ -332,6 +345,29 @@ function setupApplicationMenu() {
},
);
+ // Windows and Linux have no app menu, so the two items macOS keeps there — About and the
+ // update check — live under Help, which is where those platforms look for them.
+ if (!isMac) {
+ template.push({
+ label: mainT("common", "actions.help") || "Help",
+ submenu: [
+ ...(canOfferUpdateCheck()
+ ? [
+ {
+ label: mainT("common", "actions.checkForUpdates") || "Check for Updates",
+ click: runUpdateCheck,
+ },
+ { type: "separator" as const },
+ ]
+ : []),
+ {
+ label: mainT("common", "actions.about") || "About OpenScreen",
+ click: runAboutDialog,
+ },
+ ],
+ });
+ }
+
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
}
@@ -367,6 +403,80 @@ function getInstallChannel(): InstallChannel {
return installChannel;
}
+/** Every update affordance in the app keys off this one answer, so that the rule in
+ * install-channel.ts — a Store/Flathub/Snap/Nix copy is offered nothing at all, not even a
+ * disabled item — cannot be asked two different ways by the menu, the tray and the HUD. */
+function canOfferUpdateCheck(): boolean {
+ return !platformOwnsUpdates(getInstallChannel());
+}
+
+function aboutFacts(): AboutFacts {
+ return {
+ version: app.getVersion(),
+ channel: getInstallChannel(),
+ platform: process.platform,
+ arch: process.arch,
+ electron: process.versions.electron,
+ chrome: process.versions.chrome,
+ node: process.versions.node,
+ };
+}
+
+/** macOS gets its native About panel (the app menu's `role: "about"` opens it) because that
+ * is the window its users expect; this is the only chance to put our facts in it. Nothing
+ * here is translated, so it needs no re-run when the locale changes. */
+function configureAboutPanel() {
+ if (process.platform !== "darwin") return;
+ const facts = aboutFacts();
+ app.setAboutPanelOptions({
+ applicationName: app.name,
+ applicationVersion: facts.version,
+ // Rendered in parentheses after the version, where a build number would go. The install
+ // channel is worth more there than a second copy of the version.
+ version: facts.channel,
+ copyright: COPYRIGHT,
+ credits: formatAboutDetail(facts),
+ });
+}
+
+/** The About box for the platforms with no native panel worth opening. The "Copy" button is
+ * the point of building it ourselves: version, runtime and install channel are exactly what
+ * a bug report needs, and retyping them off a screenshot is how they arrive wrong. */
+async function showAboutDialog() {
+ const facts = aboutFacts();
+ const detail = `${formatAboutDetail(facts)}\n${COPYRIGHT}`;
+ const heading = `${app.name} ${facts.version}`;
+ const choice = await dialog.showMessageBox({
+ type: "info",
+ title: mainT("common", "actions.about") || "About OpenScreen",
+ message: heading,
+ detail,
+ buttons: [
+ mainT("common", "actions.close") || "Close",
+ mainT("common", "actions.copy") || "Copy",
+ ],
+ defaultId: 0,
+ cancelId: 0,
+ noLink: true,
+ });
+ if (choice.response === 1) clipboard.writeText(`${heading}\n${detail}`);
+}
+
+/** Menu entry point. Not `void showAboutDialog()`: an unhandled rejection here is re-thrown
+ * by main-process-errors and would take the main process with it. */
+function runAboutDialog() {
+ showAboutDialog().catch((error) => {
+ console.error("[about] dialog failed", error);
+ });
+}
+
+/** Menu and tray entry point, for the same reason `runAboutDialog` exists. */
+function runUpdateCheck() {
+ checkForUpdates().catch((error) => {
+ console.error("[updates] check failed", error);
+ });
+}
+
/** Mirrors the flag that already drives the tray icon. An update must never interrupt a take —
* and on Windows it physically cannot, because the capture helpers spawn from inside the
* install directory and NSIS cannot overwrite a running .exe. */
@@ -419,8 +529,22 @@ async function downloadAndInstall(latestVersion: string) {
if (restart.response === 0) await installSelfUpdate();
}
-async function checkForUpdates() {
- if (updateCheckInFlight) return;
+/** `onVerdict` fires as soon as we know whether an update exists — before any of the dialogs
+ * that answer leads to. The HUD's button waits on it to drop its "Checking…" label, and must
+ * not be left spinning behind a dialog the user walked away from, or behind a 240 MB
+ * download they approved. */
+async function checkForUpdates(onVerdict?: () => void) {
+ let verdictReported = false;
+ const reportVerdict = () => {
+ if (verdictReported) return;
+ verdictReported = true;
+ onVerdict?.();
+ };
+ if (updateCheckInFlight) {
+ // Another check owns the dialogs; this caller has nothing left to wait for.
+ reportVerdict();
+ return;
+ }
updateCheckInFlight = true;
updateCheckAbort = new AbortController();
const signal = AbortSignal.any([updateCheckAbort.signal, AbortSignal.timeout(10_000)]);
@@ -430,6 +554,7 @@ async function checkForUpdates() {
fetchLatest: (url, init) => net.fetch(url, init),
signal,
});
+ reportVerdict();
if (result.kind === "current") {
await dialog.showMessageBox({
type: "info",
@@ -479,6 +604,7 @@ async function checkForUpdates() {
}
await downloadAndInstall(result.latestVersion);
} catch (error) {
+ reportVerdict();
// Quitting is not a failure, and the app is already on its way out — there is nothing
// left to show the dialog on.
if (signal.aborted && updateCheckAbort?.signal.aborted) return;
@@ -489,11 +615,33 @@ async function checkForUpdates() {
detail: error instanceof Error ? error.message : String(error),
});
} finally {
+ // Belt and braces: a throw before the verdict exists must not strand the caller.
+ reportVerdict();
updateCheckInFlight = false;
updateCheckAbort = null;
}
}
+// The HUD's settings panel shows the running version and, where this copy owns its updates,
+// runs the same check the menu does. Registered here rather than in ipc/handlers.ts because
+// this is where the check and the install channel already live.
+ipcMain.handle("get-app-info", () => ({
+ version: app.getVersion(),
+ canCheckForUpdates: canOfferUpdateCheck(),
+}));
+
+ipcMain.handle("check-for-updates", async () => {
+ // The renderer hides the button on a package-manager channel. A renderer is not where that
+ // rule gets to be enforced.
+ if (!canOfferUpdateCheck()) return;
+ await new Promise<void>((resolve) => {
+ checkForUpdates(resolve).catch((error) => {
+ console.error("[updates] check failed", error);
+ resolve();
+ });
+ });
+});
+
function updateTrayMenu(recording: boolean = false) {
if (!tray) return;
const trayIcon = recording ? recordingTrayIcon : defaultTrayIcon;
@@ -523,20 +671,14 @@ function updateTrayMenu(recording: boolean = false) {
// Omitted entirely where a package manager owns the update (Microsoft Store,
// Flathub, Snap, Nix): there the app is already kept current, and offering a
// GitHub download walks the user into a second, parallel installation.
- ...(platformOwnsUpdates(getInstallChannel())
- ? []
- : [
+ ...(canOfferUpdateCheck()
+ ? [
{
label: mainT("common", "actions.checkForUpdates") || "Check for Updates",
- click: () => {
- // Not `void`: an unhandled rejection here is re-thrown by
- // main-process-errors and would kill the main process.
- checkForUpdates().catch((error) => {
- console.error("[updates] check failed", error);
- });
- },
+ click: runUpdateCheck,
},
- ]),
+ ]
+ : []),
{ type: "separator" as const },
{
label: mainT("common", "actions.quit") || "Quit",
@@ -832,6 +974,7 @@ appReady?.then(async () => {
createTray();
updateTrayMenu();
+ configureAboutPanel();
setupApplicationMenu();
await ensureRecordingsDir();
diff --git a/electron/preload.ts b/electron/preload.ts
index 66fe2af66..8a063f086 100644
--- a/electron/preload.ts
+++ b/electron/preload.ts
@@ -361,6 +361,17 @@ contextBridge.exposeInMainWorld("electronAPI", {
ipcRenderer.send("set-titlebar-overlay", color, symbolColor);
},
getPlatform: () => PLATFORM,
+ /** App identity for the HUD's settings panel: the running version, and whether this copy
+ * may offer an update check at all — a Store/Flathub/Snap/Nix install may not, see
+ * electron/install-channel.ts. */
+ getAppInfo: () =>
+ ipcRenderer.invoke("get-app-info") as Promise<{
+ version: string;
+ canCheckForUpdates: boolean;
+ }>,
+ /** Resolves once the check has a verdict. The dialogs that verdict leads to — download,
+ * restart — are the main process's conversation, not the caller's. */
+ checkForUpdates: () => ipcRenderer.invoke("check-for-updates") as Promise<void>,
revealInFolder: (filePath: string) => {
return ipcRenderer.invoke("reveal-in-folder", filePath);
},
diff --git a/src/components/launch/HudDeviceSettings.tsx b/src/components/launch/HudDeviceSettings.tsx
index dcd44fb86..4b40206d7 100644
--- a/src/components/launch/HudDeviceSettings.tsx
+++ b/src/components/launch/HudDeviceSettings.tsx
@@ -22,6 +22,9 @@ export interface HudDeviceSettingsLabels {
cameraUnavailable: string;
preview: string;
previewUnavailable: string;
+ about: string;
+ checkForUpdates: string;
+ checkingForUpdates: string;
}
/** Segmented input-level bar, driven by the live analyser. */
@@ -89,8 +92,12 @@ export const HudDeviceSettings = memo(function HudDeviceSettings({
cameraLoading,
cameraError,
labels,
+ versionLabel,
+ canCheckForUpdates,
+ checkingForUpdates,
onSelectMic,
onSelectCamera,
+ onCheckForUpdates,
onClose,
panelRef,
}: {
@@ -101,8 +108,14 @@ export const HudDeviceSettings = memo(function HudDeviceSettings({
cameraLoading: boolean;
cameraError: string | null;
labels: HudDeviceSettingsLabels;
+ /** Already interpolated ("Version 1.9.6"), or null while the main process has not
+ * answered — the About block stays out rather than reading "Version undefined". */
+ versionLabel: string | null;
+ canCheckForUpdates: boolean;
+ checkingForUpdates: boolean;
onSelectMic: (device: MicrophoneDevice) => void;
onSelectCamera: (device: CameraDevice) => void;
+ onCheckForUpdates: () => void;
onClose: () => void;
panelRef: (el: HTMLDivElement | null) => void;
}) {
@@ -204,6 +217,30 @@ export const HudDeviceSettings = memo(function HudDeviceSettings({
/>
</>
) : null}
+
+ {/* The HUD has no other settings surface, and an app the user cannot ask "which
+ version am I running?" is an app whose bug reports arrive without one. The
+ update button is absent — not disabled — where a package manager owns the
+ update; see electron/install-channel.ts. */}
+ {versionLabel ? (
+ <>
+ <div className={styles.hudMenuSectionLabel}>{labels.about}</div>
+ <div className={styles.hudModalAboutRow}>
+ <span className={styles.hudModalVersion}>{versionLabel}</span>
+ {canCheckForUpdates ? (
+ <button
+ type="button"
+ data-testid="hud-check-for-updates"
+ onClick={onCheckForUpdates}
+ disabled={checkingForUpdates}
+ className={styles.hudModalAboutAction}
+ >
+ {checkingForUpdates ? labels.checkingForUpdates : labels.checkForUpdates}
+ </button>
+ ) : null}
+ </div>
+ </>
+ ) : null}
</div>
);
});
diff --git a/src/components/launch/LaunchWindow.module.css b/src/components/launch/LaunchWindow.module.css
index 6756e3764..8821194b1 100644
--- a/src/components/launch/LaunchWindow.module.css
+++ b/src/components/launch/LaunchWindow.module.css
@@ -211,6 +211,45 @@
color: rgba(255, 255, 255, 0.35);
}
+/* About block at the foot of the settings panel: version on the left, the update check on
+ the right. Same 10px gutter as the meter rows above it so the panel keeps one left edge. */
+.hudModalAboutRow {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+ padding: 4px 10px 6px;
+}
+
+.hudModalVersion {
+ font-family: var(--font-mono, ui-monospace, monospace);
+ font-size: 10px;
+ color: rgba(255, 255, 255, 0.45);
+}
+
+.hudModalAboutAction {
+ border: 0;
+ border-radius: 0.45rem;
+ padding: 0.3rem 0.5rem;
+ background: transparent;
+ font-size: 11px;
+ color: rgba(255, 255, 255, 0.72);
+ cursor: pointer;
+ transition: background-color 120ms ease, color 120ms ease;
+}
+
+.hudModalAboutAction:hover:not(:disabled),
+.hudModalAboutAction:focus-visible:not(:disabled) {
+ background: rgba(255, 255, 255, 0.075);
+ color: #ffffff;
+ outline: none;
+}
+
+.hudModalAboutAction:disabled {
+ color: rgba(255, 255, 255, 0.35);
+ cursor: default;
+}
+
.levelMeter {
display: flex;
flex: 1;
diff --git a/src/components/launch/LaunchWindow.test.tsx b/src/components/launch/LaunchWindow.test.tsx
index 305ee8a01..881e02f1d 100644
--- a/src/components/launch/LaunchWindow.test.tsx
+++ b/src/components/launch/LaunchWindow.test.tsx
@@ -114,6 +114,11 @@ vi.mock("@/native", () => ({
},
}));
+const appInfoState = vi.hoisted(() => ({
+ value: { version: "1.9.6", canCheckForUpdates: true },
+}));
+const updateCheckMock = vi.hoisted(() => vi.fn(async () => undefined));
+
const i18nState = vi.hoisted(() => ({
value: {
locale: "en",
@@ -132,7 +137,7 @@ vi.mock("@/i18n/loader", () => ({
vi.mock("@/contexts/I18nContext", () => ({
useI18n: () => i18nState.value,
- useScopedT: () => (key: string) => {
+ useScopedT: () => (key: string, vars?: Record<string, string | number>) => {
const translations: Record<string, string> = {
"sourceSelector.defaultSourceName": "Screen",
"recording.selectSource": "Please select a source to record",
@@ -158,6 +163,10 @@ vi.mock("@/contexts/I18nContext", () => ({
"deviceSettings.noMicrophones": "No microphone found",
"deviceSettings.preview": "Preview",
"deviceSettings.previewUnavailable": "Preview unavailable",
+ "deviceSettings.about": "About",
+ "deviceSettings.version": "Version {{version}}",
+ "deviceSettings.checkForUpdates": "Check for updates",
+ "deviceSettings.checkingForUpdates": "Checking…",
"audio.inputDevice": "Input device",
"webcam.cameraDevice": "Camera device",
"cursor.useEditableCursor": "Use editable cursor",
@@ -177,7 +186,11 @@ vi.mock("@/contexts/I18nContext", () => ({
"softwareEncoderFallback.dismiss": "Got it",
"softwareEncoderFallback.dontShowAgain": "Don't show again",
};
- return translations[key] ?? key;
+ const value = translations[key] ?? key;
+ if (!vars) return value;
+ return value.replace(/\{\{(\w+)\}\}/g, (_, name: string) =>
+ String(vars[name] ?? `{{${name}}}`),
+ );
},
}));
@@ -209,6 +222,8 @@ function stubElectronAPI(getSelectedSource: Window["electronAPI"]["getSelectedSo
success: true,
available: linuxHelperAvailable.value,
})),
+ getAppInfo: vi.fn(async () => appInfoState.value),
+ checkForUpdates: updateCheckMock,
setHudOverlaySize: vi.fn(),
setHudOverlayIgnoreMouseEvents: vi.fn(),
onHudOverlayCursor: vi.fn((callback) => {
@@ -289,6 +304,9 @@ function resetLaunchMocks() {
i18nState.value.dismissSystemLocaleSuggestion.mockClear();
i18nState.value.resolveSystemLocaleSuggestion.mockClear();
linuxHelperAvailable.value = true;
+ appInfoState.value = { version: "1.9.6", canCheckForUpdates: true };
+ updateCheckMock.mockReset();
+ updateCheckMock.mockResolvedValue(undefined);
stubElectronAPI(vi.fn(async () => null));
}
@@ -916,6 +934,64 @@ describe("LaunchWindow device settings", () => {
expect(await screen.findByTestId("launch-device-settings-button")).toBeDisabled();
});
+
+ it("shows the running version and hands the update check to the main process", async () => {
+ renderLaunchWindow();
+
+ fireEvent.click(await screen.findByTestId("launch-device-settings-button"));
+ const panel = await screen.findByTestId("hud-device-settings");
+
+ expect(await within(panel).findByText("Version 1.9.6")).toBeInTheDocument();
+
+ fireEvent.click(within(panel).getByTestId("hud-check-for-updates"));
+
+ expect(updateCheckMock).toHaveBeenCalledTimes(1);
+ });
+
+ // A Microsoft Store, Flathub, Snap or Nix copy is kept current by its package manager, and
+ // pointing its user at a GitHub download starts a second, parallel install that then drifts
+ // forever. The version still shows — it is the answer to "what am I running?", not an offer.
+ it("offers no update check where a package manager owns the update", async () => {
+ appInfoState.value = { version: "1.9.6", canCheckForUpdates: false };
+
+ renderLaunchWindow();
+
+ fireEvent.click(await screen.findByTestId("launch-device-settings-button"));
+ const panel = await screen.findByTestId("hud-device-settings");
+
+ expect(await within(panel).findByText("Version 1.9.6")).toBeInTheDocument();
+ expect(within(panel).queryByTestId("hud-check-for-updates")).not.toBeInTheDocument();
+ });
+
+ it("reads as checking until the main process reports a verdict", async () => {
+ let settleCheck: (() => void) | undefined;
+ updateCheckMock.mockImplementation(
+ () =>
+ new Promise<undefined>((resolve) => {
+ settleCheck = () => resolve(undefined);
+ }),
+ );
+
+ renderLaunchWindow();
+
+ fireEvent.click(await screen.findByTestId("launch-device-settings-button"));
+ const panel = await screen.findByTestId("hud-device-settings");
+ const button = await within(panel).findByTestId("hud-check-for-updates");
+
+ fireEvent.click(button);
+
+ await waitFor(() => {
+ expect(button).toBeDisabled();
+ });
+ expect(button).toHaveTextContent("Checking…");
+
+ await act(async () => {
+ settleCheck?.();
+ });
+
+ expect(button).toBeEnabled();
+ expect(button).toHaveTextContent("Check for updates");
+ });
});
describe("LaunchWindow HUD drag", () => {
diff --git a/src/components/launch/LaunchWindow.tsx b/src/components/launch/LaunchWindow.tsx
index ea2758eab..d14e9de64 100644
--- a/src/components/launch/LaunchWindow.tsx
+++ b/src/components/launch/LaunchWindow.tsx
@@ -119,6 +119,14 @@ export function LaunchWindow() {
);
const [supportsCursorModeToggle, setSupportsCursorModeToggle] = useState(false);
const [isLinuxHud, setIsLinuxHud] = useState(false);
+ // The running version, and whether this copy may offer an update check at all — a
+ // Store/Flathub/Snap/Nix install is kept current by its package manager and is offered
+ // nothing (electron/install-channel.ts). Asked once: neither answer changes while the app
+ // runs, and the HUD is rebuilt for every recording anyway.
+ const [appInfo, setAppInfo] = useState<{ version: string; canCheckForUpdates: boolean } | null>(
+ null,
+ );
+ const [isCheckingForUpdates, setIsCheckingForUpdates] = useState(false);
/**
* Narrower than [`isLinuxHud`] on purpose: without the helper the recorder
* falls back to Chromium's capture, which DOES take a source id, so the
@@ -230,6 +238,38 @@ export function LaunchWindow() {
};
}, []);
+ useEffect(() => {
+ const getAppInfo = window.electronAPI?.getAppInfo;
+ if (!getAppInfo) return;
+ let cancelled = false;
+ getAppInfo()
+ .then((info) => {
+ if (!cancelled) setAppInfo(info);
+ })
+ .catch((error) => {
+ // Leaves the About block out entirely rather than showing "Version undefined".
+ console.warn("Failed to read app info:", error);
+ });
+ return () => {
+ cancelled = true;
+ };
+ }, []);
+
+ const handleCheckForUpdates = useCallback(() => {
+ const checkForUpdates = window.electronAPI?.checkForUpdates;
+ if (!checkForUpdates) return;
+ setIsCheckingForUpdates(true);
+ // Resolves on the verdict, not on the dialogs it leads to — the main process owns
+ // those, and a download the user approves must not leave this button spinning.
+ checkForUpdates()
+ .catch((error) => {
+ console.error("Update check failed:", error);
+ })
+ .finally(() => {
+ setIsCheckingForUpdates(false);
+ });
+ }, []);
+
useEffect(() => {
if (!import.meta.env.DEV) {
return;
@@ -843,10 +883,15 @@ export function LaunchWindow() {
cameraUnavailable: t("webcam.unavailable"),
preview: t("deviceSettings.preview"),
previewUnavailable: t("deviceSettings.previewUnavailable"),
+ about: t("deviceSettings.about"),
+ checkForUpdates: t("deviceSettings.checkForUpdates"),
+ checkingForUpdates: t("deviceSettings.checkingForUpdates"),
}),
[t],
);
+ const versionLabel = appInfo ? t("deviceSettings.version", { version: appInfo.version }) : null;
+
const hasNotices = Boolean(systemLocaleSuggestion) || softwareEncoderFallbackNoticeVisible;
return (
@@ -1043,8 +1088,12 @@ export function LaunchWindow() {
cameraLoading={isCameraDevicesLoading}
cameraError={cameraDevicesError}
labels={deviceSettingsLabels}
+ versionLabel={versionLabel}
+ canCheckForUpdates={appInfo?.canCheckForUpdates ?? false}
+ checkingForUpdates={isCheckingForUpdates}
onSelectMic={handleSelectMicDevice}
onSelectCamera={handleSelectCameraDevice}
+ onCheckForUpdates={handleCheckForUpdates}
onClose={closeDeviceSettings}
panelRef={setPopoverEl}
/>
diff --git a/src/i18n/locales/ar/common.json b/src/i18n/locales/ar/common.json
index 29acacda1..ef0d6736f 100644
--- a/src/i18n/locales/ar/common.json
+++ b/src/i18n/locales/ar/common.json
@@ -18,6 +18,7 @@
"edit": "تعديل",
"view": "عرض",
"window": "نافذة",
+ "help": "مساعدة",
"quit": "خروج",
"stopRecording": "إيقاف التسجيل",
"undo": "تراجع",
diff --git a/src/i18n/locales/ar/launch.json b/src/i18n/locales/ar/launch.json
index ec8dfad33..f738186cf 100644
--- a/src/i18n/locales/ar/launch.json
+++ b/src/i18n/locales/ar/launch.json
@@ -91,6 +91,10 @@
"micHint": "تحدّث لاختبار الميكروفون",
"noMicrophones": "لم يتم العثور على ميكروفون",
"preview": "معاينة",
- "previewUnavailable": "المعاينة غير متاحة"
+ "previewUnavailable": "المعاينة غير متاحة",
+ "about": "حول",
+ "version": "الإصدار {{version}}",
+ "checkForUpdates": "التحقق من التحديثات",
+ "checkingForUpdates": "جارٍ التحقق…"
}
}
diff --git a/src/i18n/locales/en/common.json b/src/i18n/locales/en/common.json
index f08159335..4f303ee62 100644
--- a/src/i18n/locales/en/common.json
+++ b/src/i18n/locales/en/common.json
@@ -18,6 +18,7 @@
"edit": "Edit",
"view": "View",
"window": "Window",
+ "help": "Help",
"quit": "Quit",
"stopRecording": "Stop Recording",
"undo": "Undo",
diff --git a/src/i18n/locales/en/launch.json b/src/i18n/locales/en/launch.json
index 5bbf83bc7..c10e47702 100644
--- a/src/i18n/locales/en/launch.json
+++ b/src/i18n/locales/en/launch.json
@@ -91,6 +91,10 @@
"micHint": "Speak to check your microphone",
"noMicrophones": "No microphone found",
"preview": "Preview",
- "previewUnavailable": "Preview unavailable"
+ "previewUnavailable": "Preview unavailable",
+ "about": "About",
+ "version": "Version {{version}}",
+ "checkForUpdates": "Check for updates",
+ "checkingForUpdates": "Checking…"
}
}
diff --git a/src/i18n/locales/es/common.json b/src/i18n/locales/es/common.json
index d65cac3aa..3c92583a6 100644
--- a/src/i18n/locales/es/common.json
+++ b/src/i18n/locales/es/common.json
@@ -18,6 +18,7 @@
"edit": "Editar",
"view": "Vista",
"window": "Ventana",
+ "help": "Ayuda",
"quit": "Salir",
"stopRecording": "Detener grabación",
"undo": "Deshacer",
diff --git a/src/i18n/locales/es/launch.json b/src/i18n/locales/es/launch.json
index 8ac5c1811..cac49ea83 100644
--- a/src/i18n/locales/es/launch.json
+++ b/src/i18n/locales/es/launch.json
@@ -91,6 +91,10 @@
"micHint": "Habla para probar tu micrófono",
"noMicrophones": "No se encontró ningún micrófono",
"preview": "Vista previa",
- "previewUnavailable": "Vista previa no disponible"
+ "previewUnavailable": "Vista previa no disponible",
+ "about": "Acerca de",
+ "version": "Versión {{version}}",
+ "checkForUpdates": "Buscar actualizaciones",
+ "checkingForUpdates": "Buscando…"
}
}
diff --git a/src/i18n/locales/fr/common.json b/src/i18n/locales/fr/common.json
index 1041a771a..de72f3139 100644
--- a/src/i18n/locales/fr/common.json
+++ b/src/i18n/locales/fr/common.json
@@ -18,6 +18,7 @@
"edit": "Éditer",
"view": "Affichage",
"window": "Fenêtre",
+ "help": "Aide",
"quit": "Quitter",
"stopRecording": "Arrêter l'enregistrement",
"undo": "Annuler",
diff --git a/src/i18n/locales/fr/launch.json b/src/i18n/locales/fr/launch.json
index 39fd85159..4df8c21a5 100644
--- a/src/i18n/locales/fr/launch.json
+++ b/src/i18n/locales/fr/launch.json
@@ -91,6 +91,10 @@
"micHint": "Parlez pour tester votre microphone",
"noMicrophones": "Aucun microphone détecté",
"preview": "Aperçu",
- "previewUnavailable": "Aperçu indisponible"
+ "previewUnavailable": "Aperçu indisponible",
+ "about": "À propos",
+ "version": "Version {{version}}",
+ "checkForUpdates": "Rechercher des mises à jour",
+ "checkingForUpdates": "Recherche…"
}
}
diff --git a/src/i18n/locales/it/common.json b/src/i18n/locales/it/common.json
index ca715f234..df18ace13 100644
--- a/src/i18n/locales/it/common.json
+++ b/src/i18n/locales/it/common.json
@@ -18,6 +18,7 @@
"edit": "Modifica",
"view": "Visualizza",
"window": "Finestra",
+ "help": "Aiuto",
"quit": "Esci",
"stopRecording": "Interrompi registrazione",
"undo": "Annulla",
diff --git a/src/i18n/locales/it/launch.json b/src/i18n/locales/it/launch.json
index fbc9815a5..b8bdd01a2 100644
--- a/src/i18n/locales/it/launch.json
+++ b/src/i18n/locales/it/launch.json
@@ -91,6 +91,10 @@
"micHint": "Parla per testare il microfono",
"noMicrophones": "Nessun microfono trovato",
"preview": "Anteprima",
- "previewUnavailable": "Anteprima non disponibile"
+ "previewUnavailable": "Anteprima non disponibile",
+ "about": "Info",
+ "version": "Versione {{version}}",
+ "checkForUpdates": "Controlla aggiornamenti",
+ "checkingForUpdates": "Controllo…"
}
}
diff --git a/src/i18n/locales/ja-JP/common.json b/src/i18n/locales/ja-JP/common.json
index c2dba1331..88899975b 100644
--- a/src/i18n/locales/ja-JP/common.json
+++ b/src/i18n/locales/ja-JP/common.json
@@ -18,6 +18,7 @@
"edit": "編集",
"view": "表示",
"window": "ウィンドウ",
+ "help": "ヘルプ",
"quit": "終了",
"stopRecording": "録画を停止",
"undo": "元に戻す",
diff --git a/src/i18n/locales/ja-JP/launch.json b/src/i18n/locales/ja-JP/launch.json
index 96af49814..4bfb3795c 100644
--- a/src/i18n/locales/ja-JP/launch.json
+++ b/src/i18n/locales/ja-JP/launch.json
@@ -91,6 +91,10 @@
"micHint": "マイクをテストするには話してください",
"noMicrophones": "マイクが見つかりません",
"preview": "プレビュー",
- "previewUnavailable": "プレビューを利用できません"
+ "previewUnavailable": "プレビューを利用できません",
+ "about": "情報",
+ "version": "バージョン {{version}}",
+ "checkForUpdates": "アップデートを確認",
+ "checkingForUpdates": "確認中…"
}
}
diff --git a/src/i18n/locales/ko-KR/common.json b/src/i18n/locales/ko-KR/common.json
index 2a9593155..964fdd631 100644
--- a/src/i18n/locales/ko-KR/common.json
+++ b/src/i18n/locales/ko-KR/common.json
@@ -18,6 +18,7 @@
"edit": "편집",
"view": "보기",
"window": "창",
+ "help": "도움말",
"quit": "종료",
"stopRecording": "녹화 중지",
"undo": "실행 취소",
diff --git a/src/i18n/locales/ko-KR/launch.json b/src/i18n/locales/ko-KR/launch.json
index 7068a9254..d8519f468 100644
--- a/src/i18n/locales/ko-KR/launch.json
+++ b/src/i18n/locales/ko-KR/launch.json
@@ -91,6 +91,10 @@
"micHint": "마이크를 테스트하려면 말해 보세요",
"noMicrophones": "마이크를 찾을 수 없습니다",
"preview": "미리 보기",
- "previewUnavailable": "미리 보기를 사용할 수 없습니다"
+ "previewUnavailable": "미리 보기를 사용할 수 없습니다",
+ "about": "정보",
+ "version": "버전 {{version}}",
+ "checkForUpdates": "업데이트 확인",
+ "checkingForUpdates": "확인 중…"
}
}
diff --git a/src/i18n/locales/pt-BR/common.json b/src/i18n/locales/pt-BR/common.json
index 7cdad691c..af25d126d 100644
--- a/src/i18n/locales/pt-BR/common.json
+++ b/src/i18n/locales/pt-BR/common.json
@@ -18,6 +18,7 @@
"edit": "Editar",
"view": "Visualizar",
"window": "Janela",
+ "help": "Ajuda",
"quit": "Sair",
"stopRecording": "Parar Gravação",
"undo": "Desfazer",
diff --git a/src/i18n/locales/pt-BR/launch.json b/src/i18n/locales/pt-BR/launch.json
index 59ab8ee57..fd586a4a4 100644
--- a/src/i18n/locales/pt-BR/launch.json
+++ b/src/i18n/locales/pt-BR/launch.json
@@ -91,6 +91,10 @@
"micHint": "Fale para testar seu microfone",
"noMicrophones": "Nenhum microfone encontrado",
"preview": "Pré-visualização",
- "previewUnavailable": "Pré-visualização indisponível"
+ "previewUnavailable": "Pré-visualização indisponível",
+ "about": "Sobre",
+ "version": "Versão {{version}}",
+ "checkForUpdates": "Verificar atualizações",
+ "checkingForUpdates": "Verificando…"
}
}
diff --git a/src/i18n/locales/ru/common.json b/src/i18n/locales/ru/common.json
index 4cfca236e..d7ec15ae6 100644
--- a/src/i18n/locales/ru/common.json
+++ b/src/i18n/locales/ru/common.json
@@ -18,6 +18,7 @@
"edit": "Редактировать",
"view": "Вид",
"window": "Окно",
+ "help": "Справка",
"quit": "Выход",
"stopRecording": "Остановить запись",
"undo": "Отменить",
diff --git a/src/i18n/locales/ru/launch.json b/src/i18n/locales/ru/launch.json
index 666eed6d0..6bebad776 100644
--- a/src/i18n/locales/ru/launch.json
+++ b/src/i18n/locales/ru/launch.json
@@ -91,6 +91,10 @@
"micHint": "Скажите что-нибудь, чтобы проверить микрофон",
"noMicrophones": "Микрофон не найден",
"preview": "Предпросмотр",
- "previewUnavailable": "Предпросмотр недоступен"
+ "previewUnavailable": "Предпросмотр недоступен",
+ "about": "О программе",
+ "version": "Версия {{version}}",
+ "checkForUpdates": "Проверить обновления",
+ "checkingForUpdates": "Проверка…"
}
}
diff --git a/src/i18n/locales/tr/common.json b/src/i18n/locales/tr/common.json
index c2ca46a0f..e36c2dc33 100644
--- a/src/i18n/locales/tr/common.json
+++ b/src/i18n/locales/tr/common.json
@@ -18,6 +18,7 @@
"edit": "Düzenle",
"view": "Görünüm",
"window": "Pencere",
+ "help": "Yardım",
"quit": "Çıkış",
"stopRecording": "Kaydı Durdur",
"undo": "Geri Al",
diff --git a/src/i18n/locales/tr/launch.json b/src/i18n/locales/tr/launch.json
index 6af22058e..0d6812ac1 100644
--- a/src/i18n/locales/tr/launch.json
+++ b/src/i18n/locales/tr/launch.json
@@ -91,6 +91,10 @@
"micHint": "Mikrofonunuzu test etmek için konuşun",
"noMicrophones": "Mikrofon bulunamadı",
"preview": "Önizleme",
- "previewUnavailable": "Önizleme kullanılamıyor"
+ "previewUnavailable": "Önizleme kullanılamıyor",
+ "about": "Hakkında",
+ "version": "Sürüm {{version}}",
+ "checkForUpdates": "Güncellemeleri denetle",
+ "checkingForUpdates": "Denetleniyor…"
}
}
diff --git a/src/i18n/locales/vi/common.json b/src/i18n/locales/vi/common.json
index d5e2ed4c0..544cf3b89 100644
--- a/src/i18n/locales/vi/common.json
+++ b/src/i18n/locales/vi/common.json
@@ -18,6 +18,7 @@
"edit": "Chỉnh sửa",
"view": "Xem",
"window": "Cửa sổ",
+ "help": "Trợ giúp",
"quit": "Thoát",
"stopRecording": "Dừng ghi hình",
"undo": "Hoàn tác",
diff --git a/src/i18n/locales/vi/launch.json b/src/i18n/locales/vi/launch.json
index ed3a9af86..e747af16c 100644
--- a/src/i18n/locales/vi/launch.json
+++ b/src/i18n/locales/vi/launch.json
@@ -91,6 +91,10 @@
"micHint": "Hãy nói để kiểm tra micrô",
"noMicrophones": "Không tìm thấy micrô",
"preview": "Xem trước",
- "previewUnavailable": "Không thể xem trước"
+ "previewUnavailable": "Không thể xem trước",
+ "about": "Giới thiệu",
+ "version": "Phiên bản {{version}}",
+ "checkForUpdates": "Kiểm tra bản cập nhật",
+ "checkingForUpdates": "Đang kiểm tra…"
}
}
diff --git a/src/i18n/locales/zh-CN/common.json b/src/i18n/locales/zh-CN/common.json
index 7607db7ab..30b018cc1 100644
--- a/src/i18n/locales/zh-CN/common.json
+++ b/src/i18n/locales/zh-CN/common.json
@@ -18,6 +18,7 @@
"edit": "编辑",
"view": "视图",
"window": "窗口",
+ "help": "帮助",
"quit": "退出",
"stopRecording": "停止录制",
"undo": "撤销",
diff --git a/src/i18n/locales/zh-CN/launch.json b/src/i18n/locales/zh-CN/launch.json
index 5c7022844..84025226a 100644
--- a/src/i18n/locales/zh-CN/launch.json
+++ b/src/i18n/locales/zh-CN/launch.json
@@ -91,6 +91,10 @@
"micHint": "说话以测试麦克风",
"noMicrophones": "未找到麦克风",
"preview": "预览",
- "previewUnavailable": "预览不可用"
+ "previewUnavailable": "预览不可用",
+ "about": "关于",
+ "version": "版本 {{version}}",
+ "checkForUpdates": "检查更新",
+ "checkingForUpdates": "正在检查…"
}
}
diff --git a/src/i18n/locales/zh-TW/common.json b/src/i18n/locales/zh-TW/common.json
index 186e68224..07d66259c 100644
--- a/src/i18n/locales/zh-TW/common.json
+++ b/src/i18n/locales/zh-TW/common.json
@@ -18,6 +18,7 @@
"edit": "編輯",
"view": "檢視",
"window": "視窗",
+ "help": "說明",
"quit": "退出",
"stopRecording": "停止錄製",
"undo": "復原",
diff --git a/src/i18n/locales/zh-TW/launch.json b/src/i18n/locales/zh-TW/launch.json
index 7e00991f7..c167a4699 100644
--- a/src/i18n/locales/zh-TW/launch.json
+++ b/src/i18n/locales/zh-TW/launch.json
@@ -91,6 +91,10 @@
"micHint": "說話以測試麥克風",
"noMicrophones": "找不到麥克風",
"preview": "預覽",
- "previewUnavailable": "預覽無法使用"
+ "previewUnavailable": "預覽無法使用",
+ "about": "關於",
+ "version": "版本 {{version}}",
+ "checkForUpdates": "檢查更新",
+ "checkingForUpdates": "檢查中…"
}
}
diff --git a/technical-documentation/engineering/ci-workflows.md b/technical-documentation/engineering/ci-workflows.md
index 3ab5e98ea..ba52a2cdc 100644
--- a/technical-documentation/engineering/ci-workflows.md
+++ b/technical-documentation/engineering/ci-workflows.md
@@ -104,7 +104,7 @@ A `v*` tag or manual dispatch starts platform builds. Dispatch accepts `arch` (`
- `build-windows` runs `npm run build:win` and uploads `openscreen-windows` for 30 days.
- `build-windows-store` runs `npm run build:win:store` and uploads `openscreen-windows-store` for 30 days.
- `build-macos` is an `arm64`/`x64` matrix. It builds Vite/Electron and native helpers, packages and optionally signs the app, creates DMGs, notarizes every signed build including pre-releases, and uploads one artifact per architecture for 30 days.
-- `build-linux` produces AppImage, deb, pacman, and rpm files and uploads `openscreen-linux` for 30 days. It asserts one artifact per format before uploading, because `if-no-files-found: error` evaluates the union of the upload globs and so cannot catch a single format that stopped being produced. No zsync: that is electron-updater's delta format, this repo ships no updater, and app-builder-lib 26.x embeds a block map in the AppImage instead.
+- `build-linux` produces AppImage, deb, pacman, and rpm files and uploads `openscreen-linux` for 30 days. It asserts one artifact per format before uploading, because `if-no-files-found: error` evaluates the union of the upload globs and so cannot catch a single format that stopped being produced. No zsync: it was electron-updater's older AppImage delta format, and app-builder-lib 26.x embeds a block map in the AppImage instead — which is what the in-app updater (`electron/auto-updater.ts`) reads for a differential download.
- `publish-release` waits for Windows NSIS, macOS, and Linux jobs; the Store job is not a dependency. It checks the tag against `package.json`, downloads the NSIS/macOS/Linux artifacts, and creates or updates a GitHub release with `OPENSCREEN_RELEASE_TOKEN`.
The build comments and package behavior refer to the local Whisper architecture documented in [transcription and captions](../architecture/transcription-and-captions.md). The STT model downloads to user data at runtime and is not a release-build asset.
diff --git a/technical-documentation/testing/manual-e2e-checklist.md b/technical-documentation/testing/manual-e2e-checklist.md
index a57209706..454afc800 100644
--- a/technical-documentation/testing/manual-e2e-checklist.md
+++ b/technical-documentation/testing/manual-e2e-checklist.md
@@ -323,6 +323,17 @@ The agent may only call the fixed tool set in [ai-agent.md](../architecture/ai-a
- [ ] Select a different aspect ratio from the timeline aspect-ratio menu and confirm the preview frame changes shape.
- [ ] Press `Esc` or click outside an open menu, popover, or dialog and confirm it closes.
+### App menu, About, and updates
+
+- [ ] On macOS, open the application menu and confirm About OpenScreen is followed by Check for Updates.
+- [ ] On Windows and Linux, open the Help menu and confirm it lists Check for Updates and About OpenScreen.
+- [ ] Open About and confirm it names the running version, the Electron/Chromium/Node versions, and the install channel.
+- [ ] On Windows and Linux, press Copy in the About box and confirm the clipboard holds that same block.
+- [ ] Open the HUD's device-settings panel and confirm its About row reports the same version.
+- [ ] Run Check for Updates from the menu, from the tray, and from the HUD panel, and confirm each reaches the same result dialog.
+- [ ] Start a second check while one is still running and confirm no second dialog appears.
+- [ ] On a Microsoft Store, Flathub, Snap, or Nix install, confirm no update affordance appears in the menu, the tray, or the HUD panel, while the version still shows.
+
### New effects and controls — v1.8.0
- [ ] Set a zoom's custom scale beyond the preset levels, commit it, and confirm the preview scale and the retained value both follow.