Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
test(app): pin the copyright the bundle and the About box share
Claudec90efea9e32b
diff --git a/electron/about.test.ts b/electron/about.test.tsindex 42cfedf52..a88973a74 100644--- a/electron/about.test.ts+++ b/electron/about.test.ts@@ -1,3 +1,4 @@+import { readFileSync } from "node:fs";import { describe, expect, it } from "vitest";import {type AboutFacts,@@ -49,6 +50,19 @@ describe("formatAboutDetail", () => {});});+// Both about.ts and electron-builder.json5 state in prose that these two must stay+// byte-identical, and within one commit's lifetime they already came apart: the string moved+// here while the config key was still missing, which is precisely the second attribution on the+// binary — Get Info and the Windows file properties falling back to package.json's `author` —+// that declaring the key exists to prevent. A comment in two files cannot hold that; this can.+describe("COPYRIGHT", () => {+ it("matches the copyright electron-builder stamps into the bundle", () => {+ const config = readFileSync(new URL("../electron-builder.json5", import.meta.url), "utf8");+ const declared = config.match(/["']?copyright["']?\s*:\s*["']([^"']*)["']/)?.[1];+ expect(declared).toBe(COPYRIGHT);+ });+});+// CI is Linux-only, so the platform is pinned rather than read from `process` — the macOS// branch is the one no automated run would otherwise ever execute.describe("usesNativeAboutPanel", () => {