update electron to v43
All checks were successful
Android Build / publish (push) Successful in 55s
Linux Build / publish (push) Successful in 1m6s

This commit is contained in:
olcxja 2026-07-09 22:38:33 +02:00
commit fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions

View file

@ -1,6 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLicenseFiles = exports.getNotLocalizedLicenseFile = exports.getLicenseAssets = void 0;
exports.getLicenseAssets = getLicenseAssets;
exports.getNotLocalizedLicenseFile = getNotLocalizedLicenseFile;
exports.getLicenseFiles = getLicenseFiles;
const path = require("path");
const langs_1 = require("./langs");
function getLicenseAssets(fileNames, packager) {
@ -19,12 +21,11 @@ function getLicenseAssets(fileNames, packager) {
}
else {
lang = lang.toLowerCase();
langWithRegion = langs_1.toLangWithRegion(lang);
langWithRegion = (0, langs_1.toLangWithRegion)(lang);
}
return { file: path.join(packager.buildResourcesDir, file), lang, langWithRegion, langName: langs_1.langIdToName[lang] };
});
}
exports.getLicenseAssets = getLicenseAssets;
async function getNotLocalizedLicenseFile(custom, packager, supportedExtension = ["rtf", "txt", "html"]) {
const possibleFiles = [];
for (const name of ["license", "eula"]) {
@ -37,12 +38,10 @@ async function getNotLocalizedLicenseFile(custom, packager, supportedExtension =
}
return await packager.getResource(custom, ...possibleFiles);
}
exports.getNotLocalizedLicenseFile = getNotLocalizedLicenseFile;
async function getLicenseFiles(packager) {
return getLicenseAssets((await packager.resourceList).filter(it => {
const name = it.toLowerCase();
return (name.startsWith("license_") || name.startsWith("eula_")) && (name.endsWith(".rtf") || name.endsWith(".txt"));
return (name.startsWith("license_") || name.startsWith("eula_")) && (name.endsWith(".rtf") || name.endsWith(".txt") || name.endsWith(".html"));
}), packager);
}
exports.getLicenseFiles = getLicenseFiles;
//# sourceMappingURL=license.js.map