fix(ci): bump Node to 22 for node:sqlite, move SonarQube off the deploy pipeline #1
@@ -17,7 +17,6 @@ win:
|
|||||||
target:
|
target:
|
||||||
- target: nsis
|
- target: nsis
|
||||||
arch: [x64]
|
arch: [x64]
|
||||||
publisherName: Vandal William
|
|
||||||
nsis:
|
nsis:
|
||||||
artifactName: ${productName}-Setup-${version}.${ext}
|
artifactName: ${productName}-Setup-${version}.${ext}
|
||||||
shortcutName: ${productName}
|
shortcutName: ${productName}
|
||||||
|
|||||||
+20
-2
@@ -32,6 +32,21 @@ import { startAutoUpdater } from './updater'
|
|||||||
|
|
||||||
let mainWindow: BrowserWindow | null = null
|
let mainWindow: BrowserWindow | null = null
|
||||||
|
|
||||||
|
// Empeche de lancer plusieurs instances de Max en parallele (chaque instance ouvrirait sa propre
|
||||||
|
// fenetre avatar, son propre acces concurrent a la base SQLite et son propre planificateur de
|
||||||
|
// revisions) : le second lancement se ferme immediatement et reactive la fenetre existante.
|
||||||
|
if (!app.requestSingleInstanceLock()) {
|
||||||
|
app.quit()
|
||||||
|
process.exit(0)
|
||||||
|
}
|
||||||
|
|
||||||
|
app.on('second-instance', () => {
|
||||||
|
if (!mainWindow) return
|
||||||
|
if (mainWindow.isMinimized()) mainWindow.restore()
|
||||||
|
mainWindow.show()
|
||||||
|
mainWindow.focus()
|
||||||
|
})
|
||||||
|
|
||||||
function switchMode(next: Mode): void {
|
function switchMode(next: Mode): void {
|
||||||
setMode(next)
|
setMode(next)
|
||||||
if (next === 'coach') startVisionCapture()
|
if (next === 'coach') startVisionCapture()
|
||||||
@@ -146,9 +161,12 @@ app
|
|||||||
responseHeaders: {
|
responseHeaders: {
|
||||||
...details.responseHeaders,
|
...details.responseHeaders,
|
||||||
'Content-Security-Policy': [
|
'Content-Security-Policy': [
|
||||||
|
// img-src/media-src incluent blob: : le GLB de l'avatar (textures) et les reponses
|
||||||
|
// audio ElevenLabs (TTS) sont tous deux lus via URL.createObjectURL(new Blob(...)),
|
||||||
|
// sans ca le modele reste sans texture et l'audio ne joue pas en production.
|
||||||
"default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; " +
|
"default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; " +
|
||||||
"img-src 'self' data:; font-src 'self' data:; worker-src 'self' blob:; " +
|
"img-src 'self' data: blob:; media-src 'self' blob:; font-src 'self' data:; " +
|
||||||
"connect-src 'self' https://api.elevenlabs.io https://openrouter.ai"
|
"worker-src 'self' blob:; connect-src 'self' https://api.elevenlabs.io https://openrouter.ai"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user