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
This commit is contained in:
@@ -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:start -->
|
||||
|
||||
**Intern, nicht in der Übergabe:** Der eigene Testbetrieb mit Docker steht in
|
||||
|
||||
@@ -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 @()
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -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"),
|
||||
[
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user