Create static.yml #5
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; | ||
| } | ||
| button:hover { background: #2563eb; transform: scale(1.05); } | ||
| footer { position: absolute; bottom: 15px; font-size: 0.9rem; color: #94a3b8; } | ||
| </style> | ||
| </head> | ||
| <body> | ||
| <h1>🚀 Magica Studio Pro</h1> | ||
| <p>Télécharge la dernière version de MagicaSetup.exe 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"; // on ne veut QUE ce fichier | ||
| async function loadLatestExe() { | ||
| try { | ||
| const res = await fetch(`https://api.github.com/repos/${owner}/${repo}/releases/latest`); | ||
| const data = await res.json(); | ||
| // Cherche exactement le fichier 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> | ||