bc8431fe81
1. LOAD CHAM: PyInstaller onefile 723MB giai nen toan bo vao %TEMP% moi lan chay -> chuyen ONEDIR (engine.spec COLLECT) + bundle qua Tauri resources (resource_dir/daw_engine/daw_engine.exe) thay externalBin — khoi dong tuc thi khong giai nen
2. WINDOW PICKER: Tauri v2 khong co window.__TAURI__.dialog — goi invoke('plugin:dialog|open', {options:{directory:true}}) qua __TAURI__.core.invoke
3. ICON exe: bundle.icon chuyen icon.ico -> favicon.ico + thay 3 PNG bang favicon render
- build_windows.ps1 buoc 4: copy onedir dist/daw_engine -> src-tauri/resources/daw_engine
46 lines
915 B
JSON
46 lines
915 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": ["msi", "nsis"],
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/favicon.ico"
|
|
],
|
|
"resources": [
|
|
"resources/daw_engine/**"
|
|
],
|
|
"externalBin": [],
|
|
"windows": {
|
|
"nsis": {
|
|
"installerHooks": "hooks.nsh"
|
|
}
|
|
}
|
|
}
|
|
}
|