fix(agent): versionnage des fichiers agent pour éviter le cache navigateur

- build.sh génère désormais des fichiers versionnés (edubox-agent-vX.Y.Z)
- dashboard et /api/download pointent vers les fichiers versionnés
- affichage de la version actuelle sur la page de téléchargement
This commit is contained in:
root
2026-06-12 21:50:14 +00:00
parent 852171cc59
commit 2feea2d063
5 changed files with 18 additions and 7 deletions
+6 -3
View File
@@ -1,9 +1,12 @@
import { NextResponse } from "next/server";
const AGENT_VERSION = "0.2.3";
export async function GET() {
return NextResponse.json({
windows: "/agent/edubox-agent.exe",
linux: "/agent/edubox-agent",
mac: "/agent/edubox-agent-mac",
version: AGENT_VERSION,
windows: `/edubox-agent-v${AGENT_VERSION}.exe`,
linux: `/edubox-agent-v${AGENT_VERSION}`,
mac: `/edubox-agent-v${AGENT_VERSION}-mac`,
});
}