Downloadseite fuer sva.tyrveil.com
Der Release-Bau erzeugt aus installer/downloadseite.html die Seite index.html samt icon.png. Sie liest beim Aufruf version.json und bietet immer den neuesten Installer an; der Link fuer Freunde ist damit dauerhaft https://sva.tyrveil.com. Die beim Bau eingesetzte Version, Groesse und das Datum dienen als Rueckfallebene. HOCHLADEN.txt wird jetzt mit der aktuellen Version erzeugt und nennt die Reihenfolge beim Hochladen (version.json zuletzt). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
a200987237
commit
6ca9c48868
5 changed files with 300 additions and 27 deletions
199
installer/downloadseite.html
Normal file
199
installer/downloadseite.html
Normal file
|
|
@ -0,0 +1,199 @@
|
|||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Squad Manager – Download</title>
|
||||
<meta name="description" content="Hält in Squad die Sprechtaste gedrückt, solange du sprichst. Dazu eine Personalakte für deine Charaktere.">
|
||||
<meta property="og:title" content="Squad Manager">
|
||||
<meta property="og:description" content="Hält in Squad die Sprechtaste gedrückt, solange du sprichst. Dazu eine Personalakte für deine Charaktere.">
|
||||
<meta property="og:image" content="https://sva.tyrveil.com/icon.png">
|
||||
<meta name="theme-color" content="#6e8b3d">
|
||||
<link rel="icon" href="icon.png">
|
||||
<style>
|
||||
:root {
|
||||
--bg: #151814; --panel: #1e231b; --panel-hi: #2a3125; --line: #3d4634;
|
||||
--fg: #c9cec0; --dim: #7f8874; --olive: #6e8b3d; --olive-hi: #8cb04d;
|
||||
--amber: #d9a441; --amber-dunkel: #2b2416;
|
||||
--mono: Consolas, "Cascadia Mono", "Courier New", monospace;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
[hidden] { display: none !important; }
|
||||
html { background: var(--bg); }
|
||||
body {
|
||||
margin: 0; color: var(--fg); background: var(--bg);
|
||||
font: 15px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
|
||||
}
|
||||
main { max-width: 760px; margin: 0 auto; padding: 48px 20px 24px; }
|
||||
a { color: var(--olive-hi); }
|
||||
|
||||
.kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
|
||||
.kopf img { width: 56px; height: 56px; }
|
||||
.kopf h1 { margin: 0; font-size: 26px; letter-spacing: .04em; line-height: 1.2; }
|
||||
.kopf p { margin: 2px 0 0; color: var(--dim); }
|
||||
|
||||
.download {
|
||||
background: var(--panel); border: 1px solid var(--line);
|
||||
padding: 22px 26px 26px; margin-bottom: 40px;
|
||||
}
|
||||
.download .zeile {
|
||||
display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
|
||||
font: 12px var(--mono); color: var(--dim); letter-spacing: .06em;
|
||||
}
|
||||
.version { font: 700 44px/1.1 var(--mono); color: var(--olive-hi); margin: 14px 0 6px; }
|
||||
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 22px; color: var(--dim); font-size: 14px; }
|
||||
.meta span:empty { display: none; }
|
||||
.meta span::before {
|
||||
content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0;
|
||||
background: var(--line); vertical-align: middle;
|
||||
}
|
||||
.knopf {
|
||||
display: inline-block; padding: 13px 28px; text-decoration: none;
|
||||
background: var(--olive); color: #10130d; border: 1px solid var(--olive-hi);
|
||||
font-weight: 600; font-size: 16px;
|
||||
}
|
||||
.knopf:hover, .knopf:focus-visible { background: var(--olive-hi); outline: none; }
|
||||
.hinweis {
|
||||
margin: 18px 0 0; padding: 10px 14px; background: var(--amber-dunkel);
|
||||
border-left: 3px solid var(--amber); color: var(--amber);
|
||||
}
|
||||
.nebenbei { margin: 16px 0 0; color: var(--dim); font-size: 14px; }
|
||||
|
||||
h2 {
|
||||
font: 700 13px var(--mono); letter-spacing: .08em; color: var(--olive-hi);
|
||||
border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 0 0 18px;
|
||||
}
|
||||
section { margin-bottom: 40px; }
|
||||
|
||||
.schritte { list-style: none; padding: 0; margin: 0; counter-reset: schritt; }
|
||||
.schritte li {
|
||||
counter-increment: schritt; position: relative;
|
||||
padding-left: 46px; margin-bottom: 18px;
|
||||
}
|
||||
.schritte li::before {
|
||||
content: counter(schritt); position: absolute; left: 0; top: 1px;
|
||||
width: 28px; height: 28px; display: grid; place-items: center;
|
||||
border: 1px solid var(--amber); color: var(--amber); font: 700 14px var(--mono);
|
||||
}
|
||||
.schritte b { color: #e2e6da; }
|
||||
.schritte em { font-style: normal; color: var(--amber); }
|
||||
|
||||
.module { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
||||
.module article { background: var(--panel); border: 1px solid var(--line); padding: 16px 18px; }
|
||||
.module h3 { margin: 0 0 6px; font: 700 15px var(--mono); letter-spacing: .08em; color: var(--olive-hi); }
|
||||
.module p { margin: 0; font-size: 14px; }
|
||||
|
||||
.vertrauen { color: var(--dim); font-size: 14px; border-left: 3px solid var(--line); padding-left: 14px; }
|
||||
footer {
|
||||
max-width: 760px; margin: 0 auto; padding: 18px 20px 40px;
|
||||
font: 12px var(--mono); color: var(--dim); letter-spacing: .06em;
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
main { padding-top: 28px; }
|
||||
.module { grid-template-columns: 1fr; }
|
||||
.version { font-size: 36px; }
|
||||
.knopf { display: block; text-align: center; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
<header class="kopf">
|
||||
<img src="icon.png" alt="">
|
||||
<div>
|
||||
<h1>SQUAD MANAGER</h1>
|
||||
<p>Sprachaktivierung und Personalakte für Squad</p>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="download">
|
||||
<div class="zeile"><span>AKTUELLE VERSION</span><span>FÜR WINDOWS 10 UND 11</span></div>
|
||||
<div class="version" id="version">__VERSION__</div>
|
||||
<p class="meta"><span id="groesse">__GROESSE__</span><span id="datum">Stand __DATUM__</span></p>
|
||||
<a class="knopf" id="knopf" href="__INSTALLER__">Installer herunterladen</a>
|
||||
<p class="hinweis" id="hinweis" hidden></p>
|
||||
<p class="nebenbei" id="kein-windows" hidden>Du bist gerade nicht an einem Windows-PC. Öffne diese Seite später dort – der Installer läuft nur unter Windows.</p>
|
||||
</div>
|
||||
|
||||
<section>
|
||||
<h2>I. INSTALLATION</h2>
|
||||
<ol class="schritte">
|
||||
<li><b>Python installieren</b>, falls noch nicht vorhanden: Version 3.9 oder neuer von <a href="https://www.python.org/downloads/">python.org</a>. Im Installationsfenster <em>„Add python.exe to PATH“</em> ankreuzen.</li>
|
||||
<li><b>Installer starten.</b> Windows meldet sich mit „Der Computer wurde durch Windows geschützt“. Das liegt daran, dass die Datei nicht signiert ist, nicht an einem Fehler: <em>Weitere Informationen → Trotzdem ausführen</em>.</li>
|
||||
<li><b>Fertig.</b> Der Installer richtet den Rest ein und legt eine Verknüpfung im Startmenü an. Neue Versionen meldet das Programm danach selbst, ein Klick spielt sie ein.</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>II. MODULE</h2>
|
||||
<div class="module">
|
||||
<article>
|
||||
<h3>FUNK</h3>
|
||||
<p>Hält die Sprechtaste gedrückt, solange du sprichst, und lässt sie nach dem letzten Wort los. Sperrt von selbst, wenn Squad nicht im Vordergrund ist oder du eine Funktaste hältst.</p>
|
||||
</article>
|
||||
<article>
|
||||
<h3>AKTE</h3>
|
||||
<p>Personalakte für deine Charaktere: Porträt, Dienstgrad, Einheit, Auszeichnungen und Einsätze – mit Vorlagen für alle Squad-Fraktionen und mehrere echte Armeen.</p>
|
||||
</article>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<p class="vertrauen">Greift nicht in Squad ein: kein Hook, keine DLL, kein Speicherzugriff. Das Programm liest nur den Pegel deines Mikrofons und drückt die Taste, die du festlegst.</p>
|
||||
</main>
|
||||
<footer>SVA.TYRVEIL.COM</footer>
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
if (!/Windows/i.test(navigator.userAgent)) {
|
||||
document.getElementById("kein-windows").hidden = false;
|
||||
}
|
||||
|
||||
// Die Seite wird beim Bau mit der aktuellen Version erzeugt. Liegt auf
|
||||
// dem Server schon eine neuere version.json, gilt diese.
|
||||
fetch("version.json", { cache: "no-store" })
|
||||
.then(function (antwort) {
|
||||
if (!antwort.ok) throw new Error(antwort.status);
|
||||
var geaendert = antwort.headers.get("Last-Modified");
|
||||
return antwort.json().then(function (daten) { return [daten, geaendert]; });
|
||||
})
|
||||
.then(function (paar) {
|
||||
var daten = paar[0];
|
||||
var version = String(daten.version || "").trim();
|
||||
if (!version) return;
|
||||
var adresse = String(daten.installer || "").trim();
|
||||
if (!/^https:\/\//i.test(adresse)) {
|
||||
var paket = String(daten.datei || "").trim();
|
||||
if (!/^https:\/\//i.test(paket)) return;
|
||||
adresse = paket.replace(/[^\/]+$/, "SquadManager-Setup-" + version + ".exe");
|
||||
}
|
||||
document.getElementById("knopf").href = adresse;
|
||||
|
||||
var feld = document.getElementById("version");
|
||||
if (feld.textContent.trim() !== version) {
|
||||
feld.textContent = version;
|
||||
var groesse = document.getElementById("groesse");
|
||||
var datum = document.getElementById("datum");
|
||||
groesse.textContent = "";
|
||||
var zeit = paar[1] ? new Date(paar[1]) : null;
|
||||
datum.textContent = zeit && !isNaN(zeit) ? "Stand " + zeit.toLocaleDateString("de-DE") : "";
|
||||
fetch(adresse, { method: "HEAD" }).then(function (antwort) {
|
||||
var bytes = Number(antwort.headers.get("Content-Length"));
|
||||
if (antwort.ok && bytes) {
|
||||
groesse.textContent = (bytes / 1048576).toFixed(1).replace(".", ",") + " MB";
|
||||
}
|
||||
}).catch(function () {});
|
||||
}
|
||||
|
||||
var hinweis = String(daten.hinweis || "").trim();
|
||||
if (hinweis) {
|
||||
var zeile = document.getElementById("hinweis");
|
||||
zeile.textContent = "Neu in " + version + ": " + hinweis;
|
||||
zeile.hidden = false;
|
||||
}
|
||||
})
|
||||
.catch(function () {});
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue