diff options
| author | haoyuren <13851610112@163.com> | 2026-03-15 14:13:21 -0500 |
|---|---|---|
| committer | haoyuren <13851610112@163.com> | 2026-03-15 14:13:21 -0500 |
| commit | d0162055842e5343bca54153f8f9ce83d969f2a3 (patch) | |
| tree | 780313ea72d1879024a029acf31aa4e91ac8945a /package.json | |
| parent | 61b2e3d2eb7c39fe8575bedd5d4ad3ff0b1dc768 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'package.json')
| -rw-r--r-- | package.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package.json b/package.json index 66f78cd..ce295d7 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "main": "./out/main/index.js", "scripts": { "dev": "electron-vite dev", - "build": "electron-vite build", + "build": "electron-vite build && npx esbuild src/mcp/lattex.mjs --bundle --platform=node --format=esm --outfile=out/mcp/lattex.mjs", "preview": "electron-vite preview", "postinstall": "electron-builder install-app-deps", "pack": "electron-builder --dir", |
