forked from olcxjas-softworks/LarpixClient
update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
18
electron/node_modules/builder-util/out/arch.js
generated
vendored
18
electron/node_modules/builder-util/out/arch.js
generated
vendored
|
|
@ -1,6 +1,12 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getArtifactArchName = exports.defaultArchFromString = exports.archFromString = exports.getArchSuffix = exports.getArchCliNames = exports.toLinuxArchString = exports.Arch = void 0;
|
||||
exports.Arch = void 0;
|
||||
exports.toLinuxArchString = toLinuxArchString;
|
||||
exports.getArchCliNames = getArchCliNames;
|
||||
exports.getArchSuffix = getArchSuffix;
|
||||
exports.archFromString = archFromString;
|
||||
exports.defaultArchFromString = defaultArchFromString;
|
||||
exports.getArtifactArchName = getArtifactArchName;
|
||||
var Arch;
|
||||
(function (Arch) {
|
||||
Arch[Arch["ia32"] = 0] = "ia32";
|
||||
|
|
@ -8,7 +14,7 @@ var Arch;
|
|||
Arch[Arch["armv7l"] = 2] = "armv7l";
|
||||
Arch[Arch["arm64"] = 3] = "arm64";
|
||||
Arch[Arch["universal"] = 4] = "universal";
|
||||
})(Arch = exports.Arch || (exports.Arch = {}));
|
||||
})(Arch || (exports.Arch = Arch = {}));
|
||||
function toLinuxArchString(arch, targetName) {
|
||||
switch (arch) {
|
||||
case Arch.x64:
|
||||
|
|
@ -18,20 +24,17 @@ function toLinuxArchString(arch, targetName) {
|
|||
case Arch.armv7l:
|
||||
return targetName === "snap" || targetName === "deb" ? "armhf" : targetName === "flatpak" ? "arm" : "armv7l";
|
||||
case Arch.arm64:
|
||||
return targetName === "pacman" || targetName === "flatpak" ? "aarch64" : "arm64";
|
||||
return targetName === "pacman" || targetName === "rpm" || targetName === "flatpak" ? "aarch64" : "arm64";
|
||||
default:
|
||||
throw new Error(`Unsupported arch ${arch}`);
|
||||
}
|
||||
}
|
||||
exports.toLinuxArchString = toLinuxArchString;
|
||||
function getArchCliNames() {
|
||||
return [Arch[Arch.ia32], Arch[Arch.x64], Arch[Arch.armv7l], Arch[Arch.arm64]];
|
||||
}
|
||||
exports.getArchCliNames = getArchCliNames;
|
||||
function getArchSuffix(arch, defaultArch) {
|
||||
return arch === defaultArchFromString(defaultArch) ? "" : `-${Arch[arch]}`;
|
||||
}
|
||||
exports.getArchSuffix = getArchSuffix;
|
||||
function archFromString(name) {
|
||||
switch (name) {
|
||||
case "x64":
|
||||
|
|
@ -49,11 +52,9 @@ function archFromString(name) {
|
|||
throw new Error(`Unsupported arch ${name}`);
|
||||
}
|
||||
}
|
||||
exports.archFromString = archFromString;
|
||||
function defaultArchFromString(name) {
|
||||
return name ? archFromString(name) : Arch.x64;
|
||||
}
|
||||
exports.defaultArchFromString = defaultArchFromString;
|
||||
function getArtifactArchName(arch, ext) {
|
||||
let archName = Arch[arch];
|
||||
const isAppImage = ext === "AppImage" || ext === "appimage";
|
||||
|
|
@ -88,5 +89,4 @@ function getArtifactArchName(arch, ext) {
|
|||
}
|
||||
return archName;
|
||||
}
|
||||
exports.getArtifactArchName = getArtifactArchName;
|
||||
//# sourceMappingURL=arch.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue