`bundle.resources` packageait `frontend/dist` — le bundle desktop — sous `web/`, que `resolve_web_root()` sert au navigateur. La ressource pointe désormais sur `frontend/dist-web` (transport http), et `beforeBuildCommand` appelle `build:bundle` pour que les deux bundles existent au packaging. `frontendDist` reste sur `dist` : le desktop est inchangé. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
34 lines
729 B
JSON
34 lines
729 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "IdeA",
|
|
"version": "0.3.0",
|
|
"identifier": "app.idea.ide",
|
|
"build": {
|
|
"frontendDist": "../../frontend/dist",
|
|
"devUrl": "http://localhost:5173",
|
|
"beforeDevCommand": "npm --prefix ../frontend run dev",
|
|
"beforeBuildCommand": "npm --prefix ../frontend run build:bundle"
|
|
},
|
|
"app": {
|
|
"windows": [
|
|
{
|
|
"title": "IdeA",
|
|
"width": 1280,
|
|
"height": 800,
|
|
"resizable": true
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": null
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": ["appimage", "nsis"],
|
|
"icon": ["icons/icon.png"],
|
|
"resources": {
|
|
"../../frontend/dist-web": "web"
|
|
}
|
|
}
|
|
}
|