@devries-cameron20 / t3code-1 / commits / a23b83314e
Fork 0

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

fix(desktop): mac start:desktop crash from rewritten framework symlinks (#3058)

Icarus Wings committed Jun 14, 2026 at 19:52 UTC a23b83314ec82dca5976a412e60e27f154ea0451
1 file changed +6 -2
apps/desktop/scripts/electron-launcher.mjs
+6 -2
@@ -30,7 +30,7 @@ export const APP_BUNDLE_ID = isDevelopment
30 ? `com.t3tools.t3code.dev.${devBundleIdSuffix || "local"}`
31 : "com.t3tools.t3code";
32 const APP_PROTOCOL_SCHEMES = isDevelopment ? ["t3code-dev"] : ["t3code"];
33 -const LAUNCHER_VERSION = 10;
33 +const LAUNCHER_VERSION = 11;
34 const defaultIconPath = join(desktopDir, "resources", "icon.icns");
35 const developmentMacIconPngPath = join(repoRoot, "assets", "dev", "blueprint-macos-1024.png");
36
@@ -295,7 +295,11 @@ function buildMacLauncher(electronBinaryPath) {
295 }
296
297 rmSync(targetAppBundlePath, { recursive: true, force: true });
298 - cpSync(sourceAppBundlePath, targetAppBundlePath, { recursive: true });
298 + // verbatimSymlinks keeps the framework's relative symlinks intact
299 + // (e.g. Resources -> Versions/Current/Resources). Without it cpSync
300 + // rewrites them to absolute paths into node_modules, which escape the
301 + // bundle and crash sandboxed helper processes (icudtl.dat not found).
302 + cpSync(sourceAppBundlePath, targetAppBundlePath, { recursive: true, verbatimSymlinks: true });
303 patchMainBundleInfoPlist(targetAppBundlePath, iconPath);
304 patchHelperBundleInfoPlists(targetAppBundlePath);
305 if (isDevelopment) {