mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 09:01:03 -08:00
feat(electron): bundle worker assets and resolve worker path
Add webpack config and include it in the electron backend build so worker scripts are correctly bundled for packaged apps. Move worker files to be packaged as extraResources instead of asar unpack patterns so the packaged app can load worker JS from Resources/dist/... at runtime. Fix worker path resolution in epg.events: compute resourcesPath from app.getAppPath() and point to dist/apps/electron-backend/workers when app.isPackaged. Remove verbose app path logging and update comments to reflect the actual packaged layout. Why: ensure webworker entry points are included in the renderer/backend bundle and accessible when the Electron app is packaged, preventing worker loading failures in production builds.
This commit is contained in:
1 parent
b7109c16a2
commit
a948ce0265
7 files changed
+1636
-219
No files matched your search
@@ -5,13 +5,16 @@
|
||||
"WebSearch",
|
||||
"WebFetch(domain:www.electronjs.org)",
|
||||
"Bash(npm run build:frontend:*)",
|
||||
"Bash(cat:*)"
|
||||
"Bash(cat:*)",
|
||||
"Bash(npx asar:*)",
|
||||
"Bash(npm run package:app:*)",
|
||||
"Bash(npm run build:backend:*)"
|
||||
],
|
||||
"deny": [],
|
||||
"ask": []
|
||||
},
|
||||
"enableAllProjectMcpServers": true,
|
||||
"enabledMcpjsonServers": [
|
||||
"nx-mcp"
|
||||
],
|
||||
"enableAllProjectMcpServers": true
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user