fix(app-tauri): packager le bundle web, pas le bundle desktop (#74 B1)
`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>
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
"frontendDist": "../../frontend/dist",
|
"frontendDist": "../../frontend/dist",
|
||||||
"devUrl": "http://localhost:5173",
|
"devUrl": "http://localhost:5173",
|
||||||
"beforeDevCommand": "npm --prefix ../frontend run dev",
|
"beforeDevCommand": "npm --prefix ../frontend run dev",
|
||||||
"beforeBuildCommand": "npm --prefix ../frontend run build"
|
"beforeBuildCommand": "npm --prefix ../frontend run build:bundle"
|
||||||
},
|
},
|
||||||
"app": {
|
"app": {
|
||||||
"windows": [
|
"windows": [
|
||||||
@ -27,7 +27,7 @@
|
|||||||
"targets": ["appimage", "nsis"],
|
"targets": ["appimage", "nsis"],
|
||||||
"icon": ["icons/icon.png"],
|
"icon": ["icons/icon.png"],
|
||||||
"resources": {
|
"resources": {
|
||||||
"../../frontend/dist": "web"
|
"../../frontend/dist-web": "web"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user