v0.3.0 — mise à jour in-app pour Android

- Server : GET /api/version (version + APK URL + taille), GET /download/latest.apk
- Server : releases/latest.apk servi avec Content-Type APK
- Web : checkForUpdate() compare version locale vs serveur au démarrage
- Web : modale de mise à jour (télécharger + installer, ou plus tard)
- Web : version affichée dans l'onglet Plus
- Vite : __APP_VERSION__ injecté au build depuis shared/APP_VERSION
- Workflow : bump APP_VERSION → build APK → copier vers server/releases/latest.apk
This commit is contained in:
Mathis 2026-10-04 17:18:48 +02:00
parent 246f989bdc
commit 90adee1eae
9 changed files with 220 additions and 3 deletions

View file

@ -9,6 +9,7 @@ import {
updateClass,
} from '../store'
import { showToast } from '../toast'
import { currentAppVersion } from '../update'
const inputClass =
'w-full bg-slate-900/80 border border-slate-700/80 rounded-xl px-3.5 py-2.5 text-sm text-slate-100 placeholder-slate-500 focus:outline-none focus:border-sky-500 transition-colors'
@ -174,7 +175,7 @@ export function renderPlus(root: HTMLElement, rerender: () => void): void {
h(
'p',
{ class: 'text-[10px] text-slate-600 font-semibold text-center' },
'Météo Exam — v0.2.0 · Radar de rumeurs en phase 2',
`Météo Exam — v${currentAppVersion()} · Radar de rumeurs en phase 2`,
),
)