CH-J Server ManagerSerververwaltung über SSH
Menü
Veröffentlichte Quellen

CH-J Server Manager

Durchsuchen Sie Verzeichnisse und Dateien einer bestimmten Anwendungsausgabe.

Quellen als ZIP herunterladen
CH-J Proprietary Software License 1.14

Die Quellen werden unter der CH-J Proprietary Software License 1.14 bereitgestellt. Ihre Verfügbarkeit ändert die Lizenzbedingungen nicht und gewährt keine zusätzlichen Rechte.

1,9 KB · 34 ZeilenDatei herunterladen
1"use strict";
3const fs = require("node:fs");
4const path = require("node:path");
6function assertFile(filePath, pattern, minimumSize = 1) {
7 const stat = fs.statSync(filePath, { throwIfNoEntry: false });
8 if (!stat?.isFile() || stat.size < minimumSize) throw new Error(`Required license file is missing or incomplete: ${filePath}`);
9 if (pattern && !pattern.test(fs.readFileSync(filePath, "utf8"))) throw new Error(`Unexpected license content: ${filePath}`);
12module.exports = async function afterPack(context) {
13 const resources = context.electronPlatformName === "darwin"
14 ? path.join(context.appOutDir, `${context.packager.appInfo.productFilename}.app`, "Contents", "Resources")
15 : path.join(context.appOutDir, "resources");
16 const licenses = path.join(resources, "licenses");
17 assertFile(path.join(licenses, "APPLICATION_LICENSE.txt"), /CH-J\s+Proprietary Software License[\s\S]*Version 1\.14/, 10000);
18 if (!fs.readFileSync(path.join(licenses, "APPLICATION_LICENSE.txt")).equals(fs.readFileSync(path.join(__dirname, "..", "LICENSE")))) {
19 throw new Error("Packaged application license differs from the release license.");
20 }
21 for (const name of ["README.md", "license-acceptance.md", "provozni-bezpecnost-a-zalohovani.md", "betriebssicherheit-und-datensicherung.md", "operational-safety-and-backup-guidance.md"]) {
22 assertFile(path.join(resources, "docs", name), null, 100);
23 }
24 assertFile(path.join(licenses, "NOTICE.txt"), /Copyright 2026 Josef Chudy/);
25 assertFile(path.join(licenses, "THIRD_PARTY_NOTICES.txt"), /isarray@1\.0\.0/);
26 assertFile(path.join(licenses, "THIRD_PARTY_LICENSES.zip"), null, 1000000);
27 assertFile(path.join(licenses, "ELECTRON_LICENSE.txt"), /Copyright \(c\) Electron contributors/i);
28 assertFile(path.join(licenses, "CHROMIUM_LICENSES.html"), /Chromium/, 1000000);
29 assertFile(
30 path.join(resources, "signing", "ch-j-signing-public.asc"),
31 /-----BEGIN PGP PUBLIC KEY BLOCK-----/,
32 1000
33 );
34};

SHA-256: 314114bfde5f4c735608fd2b26df0fa8dd4ad88f7840bdf1289035b7845a07dc

SHA-256 des Archivs: 5ac91caf4fa32a6fdb114f2430deed486fbe7489d5eea343d1f034169fafb5e0