From d0162055842e5343bca54153f8f9ce83d969f2a3 Mon Sep 17 00:00:00 2001 From: haoyuren <13851610112@163.com> Date: Sun, 15 Mar 2026 14:13:21 -0500 Subject: Fix MCP server in packaged app: bundle with esbuild, asarUnpack MCP server was not included in DMG builds. Now esbuild bundles it into a single file (out/mcp/lattex.mjs) with all dependencies inlined, and electron-builder unpacks it from asar so external node can execute it. Co-Authored-By: Claude Opus 4.6 --- electron-builder.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'electron-builder.yml') diff --git a/electron-builder.yml b/electron-builder.yml index 991af70..6f74aa6 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -25,6 +25,7 @@ files: - node_modules/binary-extensions/**/* asarUnpack: - node_modules/node-pty/**/* + - out/mcp/**/* afterPack: ./scripts/afterPack.js mac: icon: resources/icon.icns -- cgit v1.2.3