update electron to v43

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.NsisScriptGenerator = void 0;
exports.nsisEscapeString = nsisEscapeString;
const builder_util_1 = require("builder-util");
class NsisScriptGenerator {
constructor() {
this.lines = [];
@ -40,6 +42,16 @@ class NsisScriptGenerator {
}
}
exports.NsisScriptGenerator = NsisScriptGenerator;
function nsisEscapeString(s) {
const escaped = s
.replace(/\r\n|\r|\n/g, " ") // newlines break NSIS string literals
.replace(/\$(?!\{)/g, "$$$$") // bare $ → $$ (prevents NSIS variable expansion); ${...} references are left intact
.replace(/"/g, '$\\"'); // " → $\" (NSIS escape for double-quote)
if (escaped !== s) {
builder_util_1.log.debug({ original: s, final: escaped }, "nsis was escaped");
}
return escaped;
}
function getVarNameForFlag(flagName) {
if (flagName === "allusers") {
return "isForAllUsers";