Update static.yml #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | ||
| <html lang="fr"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Magica Studio Pro</title> | ||
| <style> | ||
| body { | ||
| background: linear-gradient(135deg, #0f172a, #1e293b); | ||
| color: #fff; | ||
| font-family: "Poppins", Arial, sans-serif; | ||
| display: flex; | ||
| flex-direction: column; | ||
| align-items: center; | ||
| justify-content: center; | ||
| height: 100vh; | ||
| margin: 0; | ||
| text-align: center; | ||
| } | ||
| h1 { font-size: 3rem; margin-bottom: 0.5em; } | ||
| p { color: #cbd5e1; max-width: 600px; margin-bottom: 2em; line-height: 1.5; } | ||
| button { | ||
| background: #3b82f6; | ||
| color: #fff; | ||
| border: none; | ||
| padding: 15px 40px; | ||
| border-radius: 12px; | ||
| font-size: 18px; | ||
| cursor: pointer; | ||
| transition: all 0.2s ease; | ||
| box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); | ||
| } | ||
| button:hover { | ||
| background: #2563eb; | ||
| transform: scale(1.05); | ||
| box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5); | ||
| } | ||
| footer { position: absolute; bottom: 15px; font-size: 0.9rem; color: #94a3b8; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <h1>🚀 Magica Studio Pro</h1> | ||
| <p>Télécharge toujours la dernière version de <strong>MagicaSetup.exe</strong> directement depuis les releases GitHub 👇</p> | ||
| <button id="downloadBtn">Chargement…</button> | ||
| <footer>© 2025 MaxiStudioDev — Tous droits réservés</footer> | ||
| <script> | ||
| const btn = document.getElementById("downloadBtn"); | ||
| const owner = "MaxiStudioDev"; | ||
| const repo = "MagicaStudioPro"; | ||
| const targetFile = "MagicaSetup.exe"; // le fichier exact que l'on veut | ||
| async function loadLatestExe() { | ||
| try { | ||
| const res = await fetch(`https://api.github.com/repos/${owner}/${repo}/releases/latest`); | ||
| const data = await res.json(); | ||
| // Cherche exactement l’asset MagicaSetup.exe | ||
| const exeAsset = data.assets.find(a => a.name === targetFile); | ||
| if (exeAsset) { | ||
| btn.textContent = `Télécharger la dernière version (${data.tag_name}) 📦`; | ||
| btn.onclick = () => window.location.href = exeAsset.browser_download_url; | ||
| } else { | ||
| btn.textContent = `${targetFile} introuvable dans la dernière release`; | ||
| btn.disabled = true; | ||
| } | ||
| } catch (err) { | ||
| console.error(err); | ||
| btn.textContent = "Erreur GitHub API"; | ||
| btn.disabled = true; | ||
| } | ||
| } | ||
| loadLatestExe(); | ||
| </script> | ||
| </body> | ||
| </html> | ||