|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="fr"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>Magica Studio Pro</title> |
| 7 | + <style> |
| 8 | + body { |
| 9 | + background: linear-gradient(135deg, #0f172a, #1e293b); |
| 10 | + color: #fff; |
| 11 | + font-family: "Poppins", Arial, sans-serif; |
| 12 | + display: flex; |
| 13 | + flex-direction: column; |
| 14 | + align-items: center; |
| 15 | + justify-content: center; |
| 16 | + height: 100vh; |
| 17 | + margin: 0; |
| 18 | + text-align: center; |
| 19 | + } |
| 20 | + h1 { font-size: 3rem; margin-bottom: 0.5em; } |
| 21 | + p { color: #cbd5e1; max-width: 600px; margin-bottom: 2em; line-height: 1.5; } |
| 22 | + button { |
| 23 | + background: #3b82f6; |
| 24 | + color: #fff; |
| 25 | + border: none; |
| 26 | + padding: 15px 40px; |
| 27 | + border-radius: 12px; |
| 28 | + font-size: 18px; |
| 29 | + cursor: pointer; |
| 30 | + transition: all 0.2s ease; |
| 31 | + } |
| 32 | + button:hover { background: #2563eb; transform: scale(1.05); } |
| 33 | + footer { position: absolute; bottom: 15px; font-size: 0.9rem; color: #94a3b8; } |
| 34 | + </style> |
| 35 | +</head> |
| 36 | +<body> |
| 37 | + <h1>🚀 Magica Studio Pro</h1> |
| 38 | + <p>Télécharge la dernière version de MagicaSetup.exe directement depuis les releases GitHub 👇</p> |
| 39 | + |
| 40 | + <button id="downloadBtn">Chargement…</button> |
| 41 | + |
| 42 | + <footer>© 2025 MaxiStudioDev — Tous droits réservés</footer> |
| 43 | + |
| 44 | + <script> |
| 45 | + const btn = document.getElementById("downloadBtn"); |
| 46 | + const owner = "MaxiStudioDev"; |
| 47 | + const repo = "MagicaStudioPro"; |
| 48 | + const targetFile = "MagicaSetup.exe"; // on ne veut QUE ce fichier |
| 49 | + |
| 50 | + async function loadLatestExe() { |
| 51 | + try { |
| 52 | + const res = await fetch(`https://api.github.com/repos/${owner}/${repo}/releases/latest`); |
| 53 | + const data = await res.json(); |
| 54 | + |
| 55 | + // Cherche exactement le fichier MagicaSetup.exe |
| 56 | + const exeAsset = data.assets.find(a => a.name === targetFile); |
| 57 | + |
| 58 | + if (exeAsset) { |
| 59 | + btn.textContent = `Télécharger la dernière version (${data.tag_name}) 📦`; |
| 60 | + btn.onclick = () => { |
| 61 | + window.location.href = exeAsset.browser_download_url; |
| 62 | + }; |
| 63 | + } else { |
| 64 | + btn.textContent = `${targetFile} introuvable dans la dernière release`; |
| 65 | + btn.disabled = true; |
| 66 | + } |
| 67 | + } catch (err) { |
| 68 | + console.error(err); |
| 69 | + btn.textContent = "Erreur GitHub API"; |
| 70 | + btn.disabled = true; |
| 71 | + } |
| 72 | + } |
| 73 | + |
| 74 | + loadLatestExe(); |
| 75 | + </script> |
| 76 | +</body> |
| 77 | +</html> |
0 commit comments