0c0aadb8ee
Spawn.log cho thay: resource_dir()/daw_engine/daw_engine.exe exists=false
tren ca ban cai lan target/release - engine KHONG duoc bundle dung cho.
Goc re (doc source tauri-utils/src/resources.rs + tauri-cli/src/interface/rust.rs):
- bundle.resources dang ARRAY ['resources/daw_engine']: ResourcePaths::new
(Slice) -> target = resource_relpath(path) GIU TIEN TO 'resources/'
-> engine nam o /resources/daw_engine/...
- lib.rs cu tim o /daw_engine/... -> exists=false.
Fix:
- tauri.conf.json: resources dang MAP {'resources/daw_engine': 'daw_engine/'}
-> resources_map -> Walk mode, dest.join(strip_prefix) -> giu nguyen cay
_internal, dich chuan /daw_engine/ (xac nhan tauri-cli
BundleResources::Map -> settings.resources_map, dong 1467-1469).
- lib.rs: do them 3 vi tri fallback (legacy resources/ prefix, portable
exe_dir, dev exe_dir/../resources) + log diagnostic day du vao spawn.log
(liet ke noi dung resource_dir/exe_dir khi khong tim thay).
- build_windows.ps1: them huong dan xac minh spawn.log sau khi cai dat.
46 lines
927 B
JSON
46 lines
927 B
JSON
{
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
"productName": "SonicForgeDAW",
|
|
"version": "1.0.0",
|
|
"identifier": "com.sonicforge.daw",
|
|
"build": {
|
|
"frontendDist": "ui",
|
|
"devUrl": "http://localhost:8000"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"windows": [
|
|
{
|
|
"title": "Sonic Forge DAW - Professional Desktop Studio",
|
|
"width": 1440,
|
|
"height": 900,
|
|
"resizable": true,
|
|
"fullscreen": false,
|
|
"devtools": true
|
|
}
|
|
],
|
|
"security": {
|
|
"csp": null
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": ["nsis", "msi"],
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/favicon.ico"
|
|
],
|
|
"resources": {
|
|
"resources/daw_engine": "daw_engine/"
|
|
},
|
|
"externalBin": [],
|
|
"windows": {
|
|
"nsis": {
|
|
"installerHooks": "hooks.nsh"
|
|
}
|
|
}
|
|
}
|
|
}
|