From 784475451a12d0ac82c043f018ae51d8550c9e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20M=C3=BCllner?= Date: Thu, 29 Oct 2026 19:43:23 +0100 Subject: [PATCH] Paket mit Anleitung und Handbuch als PDF; letztes-update.json mit reinen Zeichenketten - pdf-bauen.mjs legt die PDFs in docs/ ab; windows-paket.mjs kopiert sie in den Hauptordner des Pakets - aktualisieren.ps1: Versionszeilen als Zeichenketten, sonst schrieb ConvertTo-Json die Eigenschaften von Get-Content mit (PSPath usw.) und zuruecksetzen.ps1 schriebe sie zurueck in VERSION.txt --- README.md | 2 ++ deploy/windows/aktualisieren.ps1 | 4 +++- .../Betriebshandbuch_Alpenwerk_HR.pdf | Bin 393682 -> 393682 bytes .../Installationsanleitung_Alpenwerk_HR.pdf | Bin 2715651 -> 2715651 bytes scripts/windows-paket.mjs | 6 ++++++ uebergabe/anleitung/pdf-bauen.mjs | 7 +++++-- 6 files changed, 16 insertions(+), 3 deletions(-) rename {uebergabe/anleitung => docs}/Betriebshandbuch_Alpenwerk_HR.pdf (99%) rename {uebergabe/anleitung => docs}/Installationsanleitung_Alpenwerk_HR.pdf (99%) diff --git a/README.md b/README.md index 52916aa..fe57b7a 100644 --- a/README.md +++ b/README.md @@ -178,6 +178,8 @@ Die Anwendung läuft auf Windows Server im IIS. Das Betriebshandbuch Installation, neue Stände, Rückstieg, Plattform-Updates, Zugang und Fehlersuche. Das Paket dafür baut `npm run paket:windows`; an jedem Release dieses Repositoriums hängt es fertig gebaut (`.github/workflows/release.yml`). +Installationsanleitung und Betriebshandbuch liegen als PDF in `docs/` und im +Hauptordner jedes Pakets. **Intern, nicht in der Übergabe:** Der eigene Testbetrieb mit Docker steht in diff --git a/deploy/windows/aktualisieren.ps1 b/deploy/windows/aktualisieren.ps1 index a3dbe5a..318dacd 100644 --- a/deploy/windows/aktualisieren.ps1 +++ b/deploy/windows/aktualisieren.ps1 @@ -81,8 +81,10 @@ if ($fehlend.Count -gt 0) { throw "Unvollstaendige Konfiguration in ${Ziel}: $($ $port = [int]$app['PORT'] $url = $verwaltung['MIGRATE_DATABASE_URL'] +# Als reine Zeichenketten: Get-Content haengt jeder Zeile Eigenschaften wie +# PSPath an, und ConvertTo-Json schriebe sie mit in letztes-update.json. function Get-Version([string]$Datei) { - if (Test-Path -LiteralPath $Datei) { return @(Get-Content -LiteralPath $Datei -Encoding UTF8 | Where-Object { $_ -ne '' }) } + if (Test-Path -LiteralPath $Datei) { return @(Get-Content -LiteralPath $Datei -Encoding UTF8 | Where-Object { $_ -ne '' } | ForEach-Object { [string]$_ }) } return @() } diff --git a/uebergabe/anleitung/Betriebshandbuch_Alpenwerk_HR.pdf b/docs/Betriebshandbuch_Alpenwerk_HR.pdf similarity index 99% rename from uebergabe/anleitung/Betriebshandbuch_Alpenwerk_HR.pdf rename to docs/Betriebshandbuch_Alpenwerk_HR.pdf index 57252666a15d4ea92a2361e8ec93b7f374eec0be..0ca7f5a92ed63fa2438cf4158d9b5cbd447e2081 100644 GIT binary patch delta 76 zcmccAEODt>V!{V?6JrBYZ36>!AkyU0_svgnNi0cK&~ULbGB7eTG%&I>v;Zk-7H4c1 VX9Qs;AZ7+)79eJwF3!ld8vrUm5={UA delta 76 zcmccAEODt>V!{V?BLgEtZ36>!AkyU0_svgnNi0cK&~UK=N|+fM7+D%xfRr?gGq#H} Uf-n;hGXpUT5VKAfXJp$A04JdmKL7v# diff --git a/uebergabe/anleitung/Installationsanleitung_Alpenwerk_HR.pdf b/docs/Installationsanleitung_Alpenwerk_HR.pdf similarity index 99% rename from uebergabe/anleitung/Installationsanleitung_Alpenwerk_HR.pdf rename to docs/Installationsanleitung_Alpenwerk_HR.pdf index f7e873860011af38cf5ce6ea26974d3cd7c7515e..83aba44c1c127c03be665c437e72e6ebcafba669 100644 GIT binary patch delta 1148 zcmZXQTS!xJ9LG8HJ}-Gmr&jJ{`a7O3dUiH-rw7AruQQ4WB*c{MB}h>#N~k~|e9B9u z|BA$l#7ZHT>7NMF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G(u3I!_Gju<%=%)E4x9IGlL(G)L z_B)igY;V3xFTy%+zrSqf6TQ?Ic8@+FZwz)=?5B9f7y2oQr$3@aD|g=@tzF8!Jw$fo z3T$UvikuUc(=SSg>4>>lK!l#ql@z9n`d2i}m`@bFHZGv^+6mm|+#4hD_yqaI$Xg@P z)cqp!9i@eJUi%)gx`4ggR03lEN2-fuUNJstZ25AM?0hOj^ZY{yZ*`X_hbMogY34OY zaNif|=Oe%H5euehfH%xwmNZT2%rcz$O3%WEv)|}>*l_+k_Oc9PKdgkOGvS1Q82E_= zVKDy|alg@r5dmTUL!-=y2#Bm%S}bI`$jX+nWoEW)=bBSqfTBwBU=&v**)LpqvU%yh zG7b&-@+q6C^J15bOLI8OM7>+CTe5F0lrK2<=x)h%tfs13F@9Q!&s`B;R9<9bsd|)-pqzG4bxWn*$eOOWCDo&^l3`Xor4h2KV5+7SuabSd tHYlfOcv02W$ZE09yHG8{Zkk>aQPoNi>G610$-btkpbT7MD(H6R{sU82d|m(m diff --git a/scripts/windows-paket.mjs b/scripts/windows-paket.mjs index 58dfced..861bd45 100644 --- a/scripts/windows-paket.mjs +++ b/scripts/windows-paket.mjs @@ -108,6 +108,12 @@ cpSync("deploy/db-init/01-auth-attrappe.sql", join(app, "deploy/db-init/01-auth- // ── Betriebsskripte ─────────────────────────────────────────────────── cpSync("deploy/windows", join(ziel, "windows"), { recursive: true }); +// Installationsanleitung und Betriebshandbuch liegen als PDF im Hauptordner, +// damit sie beim Entpacken als Erstes zu sehen sind. +for (const datei of readdirSync("docs").filter((d) => d.endsWith(".pdf"))) { + cpSync(join("docs", datei), join(ziel, datei)); +} + writeFileSync( join(ziel, "VERSION.txt"), [ diff --git a/uebergabe/anleitung/pdf-bauen.mjs b/uebergabe/anleitung/pdf-bauen.mjs index e186794..58b11a2 100644 --- a/uebergabe/anleitung/pdf-bauen.mjs +++ b/uebergabe/anleitung/pdf-bauen.mjs @@ -1,4 +1,6 @@ // Baut Installationsanleitung und Betriebshandbuch als PDF im elycon-Layout. +// Die PDFs landen in docs/: von dort gehen sie in den Übergabestand und in den +// Hauptordner des Windows-Pakets (scripts/windows-paket.mjs). // // Aufruf: node uebergabe/anleitung/pdf-bauen.mjs (md2pdf selbst braucht bun, pandoc und Chrome) // @@ -74,6 +76,7 @@ for (const d of dokumente) { const temp = join(arbeit, `${d.name}.md`); writeFileSync(temp, md); execFileSync("bun", [md2pdf, temp], { cwd: dirname(md2pdf), stdio: "ignore" }); - copyFileSync(temp.replace(/\.md$/, ".pdf"), join(hier, `${d.name}.pdf`)); - console.log(`PDF: ${join(hier, `${d.name}.pdf`)}`); + const ausgabe = join(repo, "docs", `${d.name}.pdf`); + copyFileSync(temp.replace(/\.md$/, ".pdf"), ausgabe); + console.log(`PDF: ${ausgabe}`); }