@devries-cameron20 / t3code-1 / commits / 5ea5a80a83
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(marketing): Safari gets the arm64 Mac download (#7473)

Theo Browne committed Aug 18, 2026 at 23:47 UTC 5ea5a80a83c21c50f97f0851a8bd2cb9871f413a
2 files changed +7 -6
apps/marketing/src/lib/macArch.test.ts
+5 -2
@@ -13,8 +13,11 @@ describe("macArchFromGpuRenderer", () => {
13 );
14 });
15
16 - it("uses x64 for ambiguous Safari and unavailable renderer values", () => {
17 - expect(macArchFromGpuRenderer("Apple GPU")).toBe("x64");
16 + it("detects Safari's generic Apple Silicon renderer", () => {
17 + expect(macArchFromGpuRenderer("Apple GPU")).toBe("arm64");
18 + });
19 +
20 + it("uses x64 when the renderer is unavailable", () => {
21 expect(macArchFromGpuRenderer("")).toBe("x64");
22 });
23 });
apps/marketing/src/lib/macArch.ts
+2 -4
@@ -1,5 +1,5 @@
1 const INTEL_GPU_PATTERN = /intel|amd|radeon|nvidia|geforce/i;
2 -const APPLE_SILICON_GPU_PATTERN = /\bapple\s+m\d/i;
2 +const APPLE_SILICON_GPU_PATTERN = /\bapple\s+(?:m\d|gpu)\b/i;
3
4 export function macArchFromGpuRenderer(renderer: string): "arm64" | "x64" {
5 if (INTEL_GPU_PATTERN.test(renderer)) {
@@ -9,8 +9,6 @@ export function macArchFromGpuRenderer(renderer: string): "arm64" | "x64" {
9 return "arm64";
10 }
11
12 - // Generic "Apple GPU" renderers are ambiguous on Safari. x64 is the safe
13 - // fallback because Apple Silicon can run it through Rosetta, while Intel
14 - // Macs cannot run an arm64 build.
12 + // Keep the fallback compatible with Intel Macs when WebGL is unavailable.
13 return "x64";
14 }