fix: double cercle blanc inventaire + nettoyage projet
- Fix images inventaire : style carré arrondi comme accouplement/réappro - Suppression build.bat et build.ps1 (npm run build suffit) - Mise à jour icônes + README changelog Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a98ee9c029
commit
64a453e4fb
@ -61,7 +61,7 @@ npm run test:e2e # Tests E2E (Playwright + Electron)
|
||||
npm run build # Build (Vite + electron-builder → NSIS installer)
|
||||
```
|
||||
|
||||
Ou double-cliquer sur `build.bat` (admin auto). L'installeur est généré dans `dist/`.
|
||||
L'installeur est généré dans `dist/`.
|
||||
|
||||
### Tests
|
||||
|
||||
@ -236,12 +236,19 @@ src/
|
||||
- 🛡 **Nettoyage Ctrl+Z listener** — `removeEventListener` dans `destroy()` pour éviter les memory leaks
|
||||
- 🛡 **Toast stale container** — protection `isConnected` contre les conteneurs DOM détachés
|
||||
|
||||
#### UI
|
||||
- 🐛 **Double cercle blanc inventaire** — les images de dragodindes dans l'inventaire utilisent maintenant le même style carré arrondi que l'accouplement et le réappro
|
||||
|
||||
#### Renommage
|
||||
- 🏷 **Renommage "Minuteur Dragodinde" → "Obsidienne"** — nouveau nom d'application, raccourcis, titre, tray, notifications
|
||||
- 🔄 **Migration automatique des données** — copie transparente du fichier de sauvegarde depuis l'ancien dossier `%APPDATA%\Minuteur Dragodinde\` au premier lancement
|
||||
- 🔄 **GUID NSIS fixe** — l'installeur reconnaît l'ancienne version et la remplace proprement (pas de doublon)
|
||||
- 🔄 **Rétrocompatibilité import** — les backups exportés avec `app: 'minuteur-dragodinde'` restent importables
|
||||
|
||||
#### Nettoyage
|
||||
- 🗑 **Suppression scripts build.bat / build.ps1** — `npm run build` suffit
|
||||
- 🗑 **Suppression maquettes graphiques** du suivi Git (refonte_graphique/)
|
||||
|
||||
#### Technique
|
||||
- ⬆ **Migration electron-updater** — vérification sha512 via `latest.yml`, installation NSIS native, restart auto
|
||||
- 🎨 **Icône Windows native** — migration `icon.png` → `icon.ico`
|
||||
|
||||
50
build.bat
50
build.bat
@ -1,50 +0,0 @@
|
||||
@echo off
|
||||
net session >nul 2>&1
|
||||
if %errorlevel% neq 0 (
|
||||
powershell -Command "Start-Process -FilePath '%~f0' -Verb RunAs -Wait"
|
||||
exit /b
|
||||
)
|
||||
cd /d "%~dp0"
|
||||
set CSC_IDENTITY_AUTO_DISCOVERY=false
|
||||
set CSC_LINK=
|
||||
set WIN_CSC_LINK=
|
||||
echo.
|
||||
echo ================================================
|
||||
echo MINUTEUR DRAGODINDE - Construction du .exe
|
||||
echo ================================================
|
||||
echo.
|
||||
node -v >nul 2>&1
|
||||
if %errorlevel% neq 0 (
|
||||
echo [ERREUR] Node.js introuvable.
|
||||
echo Installez depuis https://nodejs.org
|
||||
start https://nodejs.org
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
for /f "tokens=*" %%v in ('node -v') do echo [OK] Node.js %%v
|
||||
|
||||
echo Nettoyage cache...
|
||||
if exist "%LOCALAPPDATA%\electron-builder\Cache\winCodeSign" rmdir /s /q "%LOCALAPPDATA%\electron-builder\Cache\winCodeSign"
|
||||
echo [OK] Cache nettoye
|
||||
echo.
|
||||
|
||||
echo [1/3] Installation des dependances...
|
||||
call npm install
|
||||
if %errorlevel% neq 0 ( echo [ERREUR] npm install & pause & exit /b 1 )
|
||||
echo [OK] Dependances OK
|
||||
echo.
|
||||
|
||||
echo [2/3] Construction du setup .exe (2-5 minutes)...
|
||||
call npm run build
|
||||
if %errorlevel% neq 0 ( echo [ERREUR] Build echoue & pause & exit /b 1 )
|
||||
|
||||
echo.
|
||||
echo [3/3] Termine !
|
||||
echo.
|
||||
echo ================================================
|
||||
echo Installeur pret dans le dossier dist\
|
||||
echo Fichier : Minuteur Dragodinde Setup 1.0.0.exe
|
||||
echo ================================================
|
||||
echo.
|
||||
if exist dist explorer dist
|
||||
pause
|
||||
71
build.ps1
71
build.ps1
@ -1,71 +0,0 @@
|
||||
# Minuteur Dragodinde - Script de construction
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$Host.UI.RawUI.WindowTitle = 'Minuteur Dragodinde - Construction'
|
||||
|
||||
Write-Host ''
|
||||
Write-Host '================================================' -ForegroundColor Cyan
|
||||
Write-Host ' MINUTEUR DRAGODINDE - Construction du .exe' -ForegroundColor Cyan
|
||||
Write-Host '================================================' -ForegroundColor Cyan
|
||||
Write-Host ''
|
||||
|
||||
Set-Location $PSScriptRoot
|
||||
|
||||
# Verification Node.js
|
||||
try {
|
||||
$nodeVer = node -v 2>&1
|
||||
Write-Host "[OK] Node.js : $nodeVer" -ForegroundColor Green
|
||||
} catch {
|
||||
Write-Host '[ERREUR] Node.js introuvable. Installez depuis https://nodejs.org' -ForegroundColor Red
|
||||
Start-Process 'https://nodejs.org'
|
||||
Read-Host 'Appuyez sur Entree pour fermer'
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Verification npm
|
||||
try {
|
||||
$npmVer = npm -v 2>&1
|
||||
Write-Host "[OK] npm : $npmVer" -ForegroundColor Green
|
||||
} catch {
|
||||
Write-Host '[ERREUR] npm introuvable.' -ForegroundColor Red
|
||||
Read-Host 'Appuyez sur Entree pour fermer'
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host ''
|
||||
Write-Host '[1/3] Installation des dependances (~150 Mo, premiere fois)...' -ForegroundColor Yellow
|
||||
Write-Host ''
|
||||
|
||||
npm install
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Host '[ERREUR] npm install a echoue.' -ForegroundColor Red
|
||||
Read-Host 'Appuyez sur Entree pour fermer'
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host ''
|
||||
Write-Host '[OK] Dependances installees' -ForegroundColor Green
|
||||
Write-Host ''
|
||||
Write-Host '[2/3] Construction du logiciel Windows (2-5 minutes)...' -ForegroundColor Yellow
|
||||
Write-Host ''
|
||||
|
||||
npm run build
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
Write-Host '[ERREUR] Build echoue - voir messages ci-dessus.' -ForegroundColor Red
|
||||
Read-Host 'Appuyez sur Entree pour fermer'
|
||||
exit 1
|
||||
}
|
||||
|
||||
Write-Host ''
|
||||
Write-Host '[3/3] Termine !' -ForegroundColor Green
|
||||
Write-Host ''
|
||||
Write-Host '================================================' -ForegroundColor Cyan
|
||||
Write-Host ' Installeur pret dans le dossier dist' -ForegroundColor Cyan
|
||||
Write-Host ' Minuteur Dragodinde Setup 1.0.0.exe' -ForegroundColor Cyan
|
||||
Write-Host '================================================' -ForegroundColor Cyan
|
||||
Write-Host ''
|
||||
|
||||
if (Test-Path 'dist') {
|
||||
Invoke-Item 'dist'
|
||||
}
|
||||
|
||||
Read-Host 'Appuyez sur Entree pour fermer'
|
||||
@ -2775,10 +2775,9 @@ body {
|
||||
.inv-avatar {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid #fff;
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user