Modern apps, old systems

View on GitHub and download the scripts

Claude Desktop (official app) on macOS 10.15 Catalina — Electron 32 port

🇪🇸 Versión en español

Status: ✅ works. The official Claude app for Mac — internal browser, Code tab, notifications, computer use and the menu-bar usage meter — rebuilt to run on macOS 10.15 Catalina without upgrading macOS.

   
Official app Requires macOS 13 (Electron 45 + Swift addon @ant/claude-swift)
Port Same app code on Electron 32.3.3 (the last that runs on 10.15)
Tested Claude Desktop 6.28899.6 · native Claude Code 2.1.330 in the Code tab
Code This folder: setup.sh, build.sh, update.sh, inject.js, shims/, compat/, icon/, signing/, tools/

What the port does

Piece Problem on Catalina Fix
Electron 45 Needs macOS 12+ App runs on Electron 32.3.3
Modern JS Syntax/APIs missing in Chrome 128 / Node 20 Whole app.asar (771 files) transpiled with esbuild-wasm (native esbuild won’t run on 10.15) to chrome128/node20.18
Node 22+ APIs tls.getCACertificates, URL.parse, zstd, fs.glob Polyfills in shims/node-shim.js (zstd via fzstd)
Electron 33–45 APIs app.configureWebAuthn, session.registerPreloadScript, contextBridge.executeInMainWorld, net.WebSocket, clipboard.read()/ClipboardItem, View.setBorderRadius shims/preload-shim.js, shims/main-shim.js, patches in inject.js
@ant/claude-swift addon Built for macOS 13 Replaced by shims/claude-swift.js: notifications via Electron.Notification, computer use via a custom helper (compat/cuhelper.m) + claude-native for mouse/keyboard
Computer use Blocked below macOS 14 isMacosBelowComputerUseFloor patched to false
Native Claude Code (Code tab) macOS 13 binary: missing libc++, libSystem, ICU symbols Bridge dylibs compat/ + automatic install_name_tool
Signing Ad-hoc signature changes every build: keychain prompts, broken network, lost permissions Stable local identity “Claude Port Local Signing”
Updates Auto-updater would install a version that won’t run Disabled (no SUFeedURL); update with update.sh
node:sqlite Used by browser cookie import Polyfill over /usr/bin/sqlite3
Menu-bar menu trayUsage.popUp is native Swift Electron menu with 5-hour and weekly bars + “Resets in…”
Icon New Liquid Glass icon lives in Assets.car icon/ext.m renders it to .icns from the official package (icon/flat.m = flat fallback)

Requirements

Install

git clone https://github.com/BertoProyect/modern-apps-on-old-systems.git
cd modern-apps-on-old-systems/macos-catalina/claude-desktop
./setup.sh

setup.sh: (1) npm ci in tools/ (@electron/asar, esbuild-wasm, fzstd); (2) downloads Electron 32.3.3 (electron-v32.3.3-darwin-x64.zip) into e32/; (3) creates the self-signed code-signing identity “Claude Port Local Signing” (signing/cs.cnf) in the login keychain — with OpenSSL 3.x the .p12 is exported with legacy algorithms, otherwise security import fails with “MAC verification failed”; (4) runs update.sh --force, which gets the latest official app URL from formulae.brew.sh/api/cask/claude.json (the direct download returned 403), ports it with build.sh and installs /Applications/Claude.app.

build.sh: extracts app.asar → transpiles .vite/ and node_modules/ (tools/transpile.js) → injects shims and patches (inject.js must print { fixBinHook: 1 } { wsFix: 1 } { cuFix: 1 }, otherwise the build stops) → repacks keeping unpacked files and the original exec bits → assembles the bundle (Electron 32 renamed to Claude, bundle IDs com.anthropic.claudefordesktop*, original Info.plist with LSMinimumSystemVersion 10.15 and no SUFeedURL) → builds bridge dylibs and cuhelper into Contents/Frameworks/cc-compat and sets the icon → signs.

First launch

  1. Open Claude and sign in.
  2. Prompt “Claude wants to use your confidential information stored in ‘Claude Safe Storage’“: enter your password and click Always Allow (otherwise the network fails with net::ERR_FAILED).
  3. Notifications: System Preferences → Notifications → Claude.
  4. Computer use: Security & Privacy → Privacy → Accessibility and Screen Recording → add /Applications/Claude.app (on 10.15 an app only appears in Screen Recording after it tries to capture; the port tries at launch). Restart Claude.
  5. Internal browser: navigation, page reading, clicks, forms, screenshots, console, network. Screenshots and read_page need the browser pane visible.
  6. Import Firefox/Chrome sessions: works (Chrome asks for “Chrome Safe Storage”).
  7. Menu-bar icon: shows 5-hour and weekly limits.

Update

cd modern-apps-on-old-systems/macos-catalina/claude-desktop
git pull
./update.sh       # --force to rebuild the same version

Permissions survive updates (stable signature). The keychain authorizes by cdhash, so update.sh asks for your login password to add the new build (security set-generic-password-partition-list). If something breaks, check ~/Library/Logs/Claude/main.log for is not a function, Insufficient number of arguments, patch not applied or Sentry caught. For debugging, main-shim.js loads ~/.claude-port-debug.js if present (Claude refuses --remote-debugging-port).

Uninstall

rm -rf /Applications/Claude.app
security delete-identity -c "Claude Port Local Signing"   # optional

Problems we hit

Symptom Cause Fix
Official download returns 403 Direct link blocks non-browser clients URL from Homebrew’s API
Official app crashes on launch Electron 45 + Swift addon for macOS 13 This port
esbuild won’t start Native binary for newer macOS esbuild-wasm
Code tab: dyld: Symbol not found: __ZTVNSt3__115basic_stringbuf… macOS 13 binary Bridge dylibs + install_name_tool
Whole main-process network fails with net::ERR_FAILED, 20–60 s freezes “Claude Safe Storage” keychain prompt at launch; partition list keyed by cdhash update.sh adds the new cdhash; otherwise Always Allow and restart
Browser / “Connect to your computer” loops: “transport flag flipped to net — reconnecting” (u.net.WebSocket is not a constructor) No net.WebSocket in Electron 32 inject.js forces the ws transport
Cookie import: ERR_SQLITE_UNAVAILABLE No node:sqlite in Node 20 Polyfill over /usr/bin/sqlite3
Chrome import: “keychain binding unavailable” Missing keychain.deriveBrowserSafeStorageKey security find-generic-password + PBKDF2 (saltysalt, 1003, 16 bytes)
TypeError: Cannot create proxy with a non-object claude-swift replacement had no vm vm stub
Computer use “requires macOS 14” Version floor isMacosBelowComputerUseFloor → false
Browser pane closes when switching mobile/desktop view No View.setBorderRadius Polyfill
[ClipboardGuard] snapshot failed — Insufficient number of arguments Electron 45 clipboard API Polyfill
example.com shows chrome-error ISP DNS 1.1.1.1 / 8.8.8.8 (../red-y-dns)
enclave key unavailable / OSStatus -34018 No Secure Enclave Harmless (except “Devices”, see ../control-desde-movil)
Code-tab terminal: “Could not start the shell” (posix_spawn failed: Permission denied) asar pack loses +x on node-pty/spawn-helper build.sh copies exec bits
Window sometimes stuck on a grey skeleton claude.ai view born visibilityState: hidden, compositor stopped main-shim.js toggles visibility and, if needed, restarts the renderer; self-heals in ~15 s

Not working (yet)