Compare commits
5
Commits
09ae70cb36
...
037faa72f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
037faa72f0 | ||
|
|
1c2f002eb3 | ||
|
|
60e2fb26af | ||
|
|
9a66ff7f17 | ||
|
|
478ffa59ce |
+10
-3
@@ -1,14 +1,20 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [develop, main]
|
||||
# Tourne uniquement sur la Pull Request, avant le clic sur "Merge" (seul moment ou un check peut
|
||||
# encore bloquer la fusion). Un "push" sur main declenche par le merge lui-meme arriverait trop
|
||||
# tard pour bloquer quoi que ce soit.
|
||||
pull_request:
|
||||
branches: [develop, main]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
quality:
|
||||
runs-on: ubuntu-latest
|
||||
# Le code de l'app vit dans le sous-dossier "Max Avatar" (la racine du depot garde CLAUDE.md,
|
||||
# README.md, docs/, .gitea/, .husky/, .vscode/, .claude/, docker-compose*.yml).
|
||||
defaults:
|
||||
run:
|
||||
working-directory: Max Avatar
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -21,6 +27,7 @@ jobs:
|
||||
# la transformation plante avec "Cannot bundle Node.js built-in node:sqlite".
|
||||
node-version: '24'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: 'Max Avatar/package-lock.json'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci --ignore-scripts
|
||||
|
||||
@@ -8,6 +8,9 @@ on:
|
||||
jobs:
|
||||
build-windows:
|
||||
runs-on: windows-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: Max Avatar
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -19,10 +22,13 @@ jobs:
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: max-windows
|
||||
path: dist/*.exe
|
||||
path: Max Avatar/dist/*.exe
|
||||
|
||||
build-mac:
|
||||
runs-on: macos-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: Max Avatar
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -34,10 +40,13 @@ jobs:
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: max-mac
|
||||
path: dist/*.dmg
|
||||
path: Max Avatar/dist/*.dmg
|
||||
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
run:
|
||||
working-directory: Max Avatar
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
@@ -49,4 +58,4 @@ jobs:
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: max-linux
|
||||
path: dist/*.AppImage
|
||||
path: Max Avatar/dist/*.AppImage
|
||||
|
||||
@@ -11,6 +11,9 @@ jobs:
|
||||
sonarqube:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ secrets.SONAR_TOKEN != '' }}
|
||||
defaults:
|
||||
run:
|
||||
working-directory: Max Avatar
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -21,6 +24,7 @@ jobs:
|
||||
with:
|
||||
node-version: '24'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: 'Max Avatar/package-lock.json'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci --ignore-scripts
|
||||
@@ -30,6 +34,8 @@ jobs:
|
||||
|
||||
- name: SonarQube analysis
|
||||
uses: sonarsource/sonarqube-scan-action@master
|
||||
with:
|
||||
projectBaseDir: Max Avatar
|
||||
env:
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
npx lint-staged
|
||||
cd "Max Avatar" && npx lint-staged
|
||||
|
||||
Vendored
+4
-4
@@ -5,10 +5,10 @@
|
||||
"name": "Debug Main Process",
|
||||
"type": "node",
|
||||
"request": "launch",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite",
|
||||
"cwd": "${workspaceRoot}/Max Avatar",
|
||||
"runtimeExecutable": "${workspaceRoot}/Max Avatar/node_modules/.bin/electron-vite",
|
||||
"windows": {
|
||||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
|
||||
"runtimeExecutable": "${workspaceRoot}/Max Avatar/node_modules/.bin/electron-vite.cmd"
|
||||
},
|
||||
"runtimeArgs": ["--sourcemap"],
|
||||
"env": {
|
||||
@@ -20,7 +20,7 @@
|
||||
"port": 9222,
|
||||
"request": "attach",
|
||||
"type": "chrome",
|
||||
"webRoot": "${workspaceFolder}/src/renderer",
|
||||
"webRoot": "${workspaceFolder}/Max Avatar/src/renderer",
|
||||
"timeout": 60000,
|
||||
"presentation": {
|
||||
"hidden": true
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
FROM node:20-alpine AS base
|
||||
# node:sqlite (coachStore.ts, memory/store.ts, meetingStore.ts) exige Node >= 22.5, mais
|
||||
# Vite/Rolldown ne le reconnaissent comme built-in qu'a partir de Node 24.
|
||||
FROM node:24-alpine AS base
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci --ignore-scripts
|
||||
|
Before Width: | Height: | Size: 121 KiB After Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
@@ -17,7 +17,6 @@ win:
|
||||
target:
|
||||
- target: nsis
|
||||
arch: [x64]
|
||||
publisherName: Vandal William
|
||||
nsis:
|
||||
artifactName: ${productName}-Setup-${version}.${ext}
|
||||
shortcutName: ${productName}
|
||||
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
@@ -32,6 +32,21 @@ import { startAutoUpdater } from './updater'
|
||||
|
||||
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 {
|
||||
setMode(next)
|
||||
if (next === 'coach') startVisionCapture()
|
||||
@@ -146,9 +161,12 @@ app
|
||||
responseHeaders: {
|
||||
...details.responseHeaders,
|
||||
'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'; " +
|
||||
"img-src 'self' data:; font-src 'self' data:; worker-src 'self' blob:; " +
|
||||
"connect-src 'self' https://api.elevenlabs.io https://openrouter.ai"
|
||||
"img-src 'self' data: blob:; media-src 'self' blob:; font-src 'self' data:; " +
|
||||
"worker-src 'self' blob:; connect-src 'self' https://api.elevenlabs.io https://openrouter.ai"
|
||||
]
|
||||
}
|
||||
})
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user