diff --git a/agent/build.sh b/agent/build.sh index c8fe686..1ac73aa 100755 --- a/agent/build.sh +++ b/agent/build.sh @@ -10,11 +10,17 @@ export PATH=$PATH:/usr/local/go/bin GOOS=windows GOARCH=amd64 go build -ldflags "${LDFLAGS}" -o edubox-agent.exe . echo " edubox-agent.exe (Windows amd64)" +cp edubox-agent.exe "edubox-agent-v${VERSION}.exe" +echo " edubox-agent-v${VERSION}.exe (Windows amd64)" GOOS=linux GOARCH=amd64 go build -ldflags "${LDFLAGS}" -o edubox-agent . echo " edubox-agent (Linux amd64)" +cp edubox-agent "edubox-agent-v${VERSION}" +echo " edubox-agent-v${VERSION} (Linux amd64)" GOOS=darwin GOARCH=amd64 go build -ldflags "${LDFLAGS}" -o edubox-agent-mac . echo " edubox-agent-mac (macOS amd64)" +cp edubox-agent-mac "edubox-agent-v${VERSION}-mac" +echo " edubox-agent-v${VERSION}-mac (macOS amd64)" echo "Done." diff --git a/agent/edubox-agent-v0.2.3 b/agent/edubox-agent-v0.2.3 new file mode 100755 index 0000000..504f3b1 Binary files /dev/null and b/agent/edubox-agent-v0.2.3 differ diff --git a/agent/edubox-agent-v0.2.3-mac b/agent/edubox-agent-v0.2.3-mac new file mode 100755 index 0000000..3b8628e Binary files /dev/null and b/agent/edubox-agent-v0.2.3-mac differ diff --git a/server/app/api/download/route.ts b/server/app/api/download/route.ts index ca7bb6d..a901e68 100644 --- a/server/app/api/download/route.ts +++ b/server/app/api/download/route.ts @@ -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`, }); } diff --git a/server/app/dashboard/download/page.tsx b/server/app/dashboard/download/page.tsx index ac9486c..530d007 100644 --- a/server/app/dashboard/download/page.tsx +++ b/server/app/dashboard/download/page.tsx @@ -1,5 +1,6 @@ import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"; -import { Button } from "@/components/ui/button"; + +const AGENT_VERSION = "0.2.3"; export const dynamic = "force-dynamic"; @@ -7,6 +8,7 @@ export default function DownloadPage() { return (
Version actuelle : {AGENT_VERSION}
Agent EduBox pour Windows (64 bits)
- Télécharger (.exe) + Télécharger (.exe)Agent EduBox pour Linux (64 bits)
- Télécharger + TéléchargerAgent EduBox pour macOS (Intel & Apple Silicon)
- Télécharger + Télécharger