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
fix(build,test): unblock tsc, and stop assuming an x64 host
Etienne Lescot7309a27019a8
diff --git a/electron/stt/gpuDetector.test.ts b/electron/stt/gpuDetector.test.tsindex 9c4ac9364..5790032d4 100644--- a/electron/stt/gpuDetector.test.ts+++ b/electron/stt/gpuDetector.test.ts@@ -39,7 +39,13 @@ describe("gpuDetector", () => {const paths = candidateBinaryPaths(here);expect(paths.length).toBeGreaterThanOrEqual(2);const resolved = paths.map((p) => p.replace(/\\/g, "/"));- expect(resolved).toContain(`${here}/electron/native/bin/win32-x64/whisper-stt-server.exe`);+ // The tag is `${platform}-${arch}`, and only `platform` is stubbed above —+ // `arch` stays the HOST's. Hardcoding `win32-x64` therefore asserted that the+ // host is x64, so this passed on CI (linux-x64) and on an Intel Mac but failed+ // on every Apple Silicon machine, where the tag is `win32-arm64`.+ expect(resolved).toContain(+ `${here}/electron/native/bin/win32-${process.arch}/whisper-stt-server.exe`,+ );} finally {Object.defineProperty(process, "platform", { value: originalPlatform, configurable: true });}diff --git a/src/components/ai-edition/ExportDialog.tsx b/src/components/ai-edition/ExportDialog.tsxindex 63dc382e9..363c55d05 100644--- a/src/components/ai-edition/ExportDialog.tsx+++ b/src/components/ai-edition/ExportDialog.tsx@@ -33,7 +33,6 @@ import {} from "@/lib/exporter";import { calculateMp4ExportSettings } from "@/lib/exporter/mp4ExportSettings";import { exportGifNative, exportMultiNative, useIsCpuCompositor } from "@/native";-import { nativeBridgeClient } from "@/native/client";import type { CompositorClipInput } from "@/native/contracts";import { buildSceneDescription, resolveVisibleClips } from "@/native/sceneDescription";import { ModalShell } from "./Modals";