CH-J Server Manager
Durchsuchen Sie Verzeichnisse und Dateien einer bestimmten Anwendungsausgabe.
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.
"use strict";const fs = require("node:fs");const path = require("node:path");function assertFile(filePath, pattern, minimumSize = 1) { const stat = fs.statSync(filePath, { throwIfNoEntry: false }); if (!stat?.isFile() || stat.size < minimumSize) throw new Error(`Required license file is missing or incomplete: ${filePath}`); if (pattern && !pattern.test(fs.readFileSync(filePath, "utf8"))) throw new Error(`Unexpected license content: ${filePath}`);}module.exports = async function afterPack(context) { const resources = context.electronPlatformName === "darwin" ? path.join(context.appOutDir, `${context.packager.appInfo.productFilename}.app`, "Contents", "Resources") : path.join(context.appOutDir, "resources"); const licenses = path.join(resources, "licenses"); assertFile(path.join(licenses, "APPLICATION_LICENSE.txt"), /CH-J\s+Proprietary Software License[\s\S]*Version 1\.14/, 10000); if (!fs.readFileSync(path.join(licenses, "APPLICATION_LICENSE.txt")).equals(fs.readFileSync(path.join(__dirname, "..", "LICENSE")))) { throw new Error("Packaged application license differs from the release license."); } for (const name of ["README.md", "license-acceptance.md", "provozni-bezpecnost-a-zalohovani.md", "betriebssicherheit-und-datensicherung.md", "operational-safety-and-backup-guidance.md"]) { assertFile(path.join(resources, "docs", name), null, 100); } assertFile(path.join(licenses, "NOTICE.txt"), /Copyright 2026 Josef Chudy/); assertFile(path.join(licenses, "THIRD_PARTY_NOTICES.txt"), /isarray@1\.0\.0/); assertFile(path.join(licenses, "THIRD_PARTY_LICENSES.zip"), null, 1000000); assertFile(path.join(licenses, "ELECTRON_LICENSE.txt"), /Copyright \(c\) Electron contributors/i); assertFile(path.join(licenses, "CHROMIUM_LICENSES.html"), /Chromium/, 1000000); assertFile( path.join(resources, "signing", "ch-j-signing-public.asc"), /-----BEGIN PGP PUBLIC KEY BLOCK-----/, 1000 );};SHA-256: 314114bfde5f4c735608fd2b26df0fa8dd4ad88f7840bdf1289035b7845a07dc
SHA-256 des Archivs: 5ac91caf4fa32a6fdb114f2430deed486fbe7489d5eea343d1f034169fafb5e0