* feat: bundle mcp-server into release app so AI Chat works - Add esbuild bundle script (scripts/bundle-mcp-server.mjs) that compiles mcp-server/index.js and ws-bridge.js into self-contained CJS bundles - Output goes to src-tauri/resources/mcp-server/ (gitignored) - Add Tauri resources config to copy bundles into Contents/Resources/mcp-server/ - Update mcp_server_dir() to look in Contents/Resources/ (not Contents/) in release - Add bundle-mcp npm script; hook it into tauri beforeBuildCommand - Exclude generated resources from ESLint Previously AI Chat showed 'mcp-server not found at .../Contents/mcp-server' because the release path lacked the 'Resources' segment and no files were bundled. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * ci: bundle mcp-server resources before Rust tests * fix: add mcp-server as pnpm workspace package so esbuild can resolve its deps in CI * fix: exclude src-tauri/target from eslint to fix CI lint failure --------- Co-authored-by: Test <test@test.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
59 lines
1.4 KiB
JSON
59 lines
1.4 KiB
JSON
{
|
|
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
|
|
"productName": "laputa",
|
|
"version": "0.1.0",
|
|
"identifier": "club.refactoring.laputa",
|
|
"build": {
|
|
"frontendDist": "../dist",
|
|
"devUrl": "http://localhost:5202",
|
|
"beforeDevCommand": "pnpm dev",
|
|
"beforeBuildCommand": "pnpm build && pnpm bundle-mcp"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"windows": [
|
|
{
|
|
"title": "Laputa",
|
|
"width": 1400,
|
|
"height": 900,
|
|
"resizable": true,
|
|
"fullscreen": false,
|
|
"titleBarStyle": "Overlay",
|
|
"hiddenTitle": true,
|
|
"backgroundColor": "#F7F6F3"
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": null,
|
|
"assetProtocol": {
|
|
"enable": true,
|
|
"scope": [
|
|
"**"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"createUpdaterArtifacts": true,
|
|
"resources": {
|
|
"resources/mcp-server/**/*": "mcp-server/"
|
|
},
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
]
|
|
},
|
|
"plugins": {
|
|
"updater": {
|
|
"endpoints": [
|
|
"https://refactoringhq.github.io/laputa-app/latest.json"
|
|
],
|
|
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDRFQzlGQ0RFM0E1MTIzNDkKUldSSkkxRTYzdnpKVG13M0Zwd3M1RzErbWhJeEhBQUQyaG90bHBtMkNzMm1MNERZRlpXSGFRMTUK"
|
|
}
|
|
}
|
|
} |