Compare commits
5
Commits
09ae70cb36
...
037faa72f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
037faa72f0 | ||
|
|
1c2f002eb3 | ||
|
|
60e2fb26af | ||
|
|
9a66ff7f17 | ||
|
|
478ffa59ce |
+10
-3
@@ -1,14 +1,20 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
# Tourne uniquement sur la Pull Request, avant le clic sur "Merge" (seul moment ou un check peut
|
||||||
branches: [develop, main]
|
# 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:
|
pull_request:
|
||||||
branches: [develop, main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
quality:
|
quality:
|
||||||
runs-on: ubuntu-latest
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -21,6 +27,7 @@ jobs:
|
|||||||
# la transformation plante avec "Cannot bundle Node.js built-in node:sqlite".
|
# la transformation plante avec "Cannot bundle Node.js built-in node:sqlite".
|
||||||
node-version: '24'
|
node-version: '24'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
cache-dependency-path: 'Max Avatar/package-lock.json'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci --ignore-scripts
|
run: npm ci --ignore-scripts
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: Max Avatar
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -19,10 +22,13 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: max-windows
|
name: max-windows
|
||||||
path: dist/*.exe
|
path: Max Avatar/dist/*.exe
|
||||||
|
|
||||||
build-mac:
|
build-mac:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: Max Avatar
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -34,10 +40,13 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: max-mac
|
name: max-mac
|
||||||
path: dist/*.dmg
|
path: Max Avatar/dist/*.dmg
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: Max Avatar
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
@@ -49,4 +58,4 @@ jobs:
|
|||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: max-linux
|
name: max-linux
|
||||||
path: dist/*.AppImage
|
path: Max Avatar/dist/*.AppImage
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ jobs:
|
|||||||
sonarqube:
|
sonarqube:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ secrets.SONAR_TOKEN != '' }}
|
if: ${{ secrets.SONAR_TOKEN != '' }}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: Max Avatar
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -21,6 +24,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '24'
|
node-version: '24'
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
cache-dependency-path: 'Max Avatar/package-lock.json'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci --ignore-scripts
|
run: npm ci --ignore-scripts
|
||||||
@@ -30,6 +34,8 @@ jobs:
|
|||||||
|
|
||||||
- name: SonarQube analysis
|
- name: SonarQube analysis
|
||||||
uses: sonarsource/sonarqube-scan-action@master
|
uses: sonarsource/sonarqube-scan-action@master
|
||||||
|
with:
|
||||||
|
projectBaseDir: Max Avatar
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
|
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",
|
"name": "Debug Main Process",
|
||||||
"type": "node",
|
"type": "node",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}/Max Avatar",
|
||||||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite",
|
"runtimeExecutable": "${workspaceRoot}/Max Avatar/node_modules/.bin/electron-vite",
|
||||||
"windows": {
|
"windows": {
|
||||||
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
|
"runtimeExecutable": "${workspaceRoot}/Max Avatar/node_modules/.bin/electron-vite.cmd"
|
||||||
},
|
},
|
||||||
"runtimeArgs": ["--sourcemap"],
|
"runtimeArgs": ["--sourcemap"],
|
||||||
"env": {
|
"env": {
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
"port": 9222,
|
"port": 9222,
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
"type": "chrome",
|
"type": "chrome",
|
||||||
"webRoot": "${workspaceFolder}/src/renderer",
|
"webRoot": "${workspaceFolder}/Max Avatar/src/renderer",
|
||||||
"timeout": 60000,
|
"timeout": 60000,
|
||||||
"presentation": {
|
"presentation": {
|
||||||
"hidden": true
|
"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
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci --ignore-scripts
|
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:
|
||||||
- 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}
|
||||||
|
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
|
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"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user