fix: avatar texture/TTS audio broken in packaged build, allow multiple instances
Found by testing the first real Windows installer build end-to-end: - electron-builder.yml: `publisherName` under `win` is invalid in electron-builder 26.x (moved under `win.signtoolOptions`), which made `npm run build:win` fail validation entirely. Removed (no code signing configured, so it wasn't doing anything anyway). - index.ts: the production-only CSP header (added on top of index.html's own meta CSP, only active when !is.dev) was missing `blob:` in img-src and had no media-src directive at all. The GLB avatar's embedded textures and ElevenLabs TTS playback both go through `URL.createObjectURL(new Blob(...))`, so both silently failed in the packaged app while working fine in dev (dev skips this header entirely). Avatar rendered untextured, no audio played. - index.ts: added `app.requestSingleInstanceLock()` + a `second-instance` handler. Without it, every click on the desktop shortcut launched another full instance (own window, own SQLite connections, own review scheduler), which the installed app visibly allowed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
9a66ff7f17
commit
60e2fb26af
@@ -17,7 +17,6 @@ win:
|
||||
target:
|
||||
- target: nsis
|
||||
arch: [x64]
|
||||
publisherName: Vandal William
|
||||
nsis:
|
||||
artifactName: ${productName}-Setup-${version}.${ext}
|
||||
shortcutName: ${productName}
|
||||
|
||||
Reference in New Issue
Block a user