builder-util
Advanced tools
Comparing version 4.1.7 to 4.2.0
@@ -5,6 +5,7 @@ export declare enum Arch { | ||
armv7l = 2, | ||
arm64 = 3, | ||
} | ||
export declare function toLinuxArchString(arch: Arch): "i386" | "amd64" | "armv7l"; | ||
export declare type ArchType = "x64" | "ia32" | "armv7l"; | ||
export declare type ArchType = "x64" | "ia32" | "armv7l" | "arm64"; | ||
export declare function toLinuxArchString(arch: Arch): string; | ||
export declare function getArchSuffix(arch: Arch): string; | ||
export declare function archFromString(name: string): Arch; |
@@ -14,5 +14,17 @@ "use strict"; | ||
Arch[Arch["armv7l"] = 2] = "armv7l"; | ||
Arch[Arch["arm64"] = 3] = "arm64"; | ||
})(Arch || (exports.Arch = Arch = {})); | ||
function toLinuxArchString(arch) { | ||
return arch === Arch.ia32 ? "i386" : arch === Arch.x64 ? "amd64" : "armv7l"; | ||
switch (arch) { | ||
case Arch.x64: | ||
return "amd64"; | ||
case Arch.ia32: | ||
return "i386"; | ||
case Arch.armv7l: | ||
return "armv7l"; | ||
case Arch.arm64: | ||
return "arm64"; | ||
default: | ||
throw new Error(`Unsupported arch ${arch}`); | ||
} | ||
} | ||
@@ -28,2 +40,4 @@ function getArchSuffix(arch) { | ||
return Arch.ia32; | ||
case "arm64": | ||
return Arch.arm64; | ||
case "armv7l": | ||
@@ -30,0 +44,0 @@ return Arch.armv7l; |
@@ -41,1 +41,4 @@ /// <reference types="debug" /> | ||
export declare function isEnvTrue(value: string | null | undefined): boolean; | ||
export declare class InvalidConfigurationError extends Error { | ||
constructor(message: string, code?: string); | ||
} |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.debug7z = exports.asArray = exports.copyFile = exports.hashFile = exports.DebugLogger = exports.AsyncTaskManager = exports.archFromString = exports.getArchSuffix = exports.toLinuxArchString = exports.Arch = exports.prepareWindowsExecutableArgs = exports.execWine = exports.isCanSignDmg = exports.isMacOsSierra = exports.debug = exports.log = exports.TmpDir = exports.safeStringifyJson = undefined; | ||
exports.InvalidConfigurationError = exports.debug7z = exports.asArray = exports.copyFile = exports.hashFile = exports.DebugLogger = exports.AsyncTaskManager = exports.archFromString = exports.getArchSuffix = exports.toLinuxArchString = exports.Arch = exports.prepareWindowsExecutableArgs = exports.execWine = exports.isCanSignDmg = exports.isMacOsSierra = exports.debug = exports.log = exports.TmpDir = exports.safeStringifyJson = undefined; | ||
@@ -515,2 +515,8 @@ var _builderUtilRuntime; | ||
} | ||
//# sourceMappingURL=util.js.map | ||
class InvalidConfigurationError extends Error { | ||
constructor(message, code = "ERR_ELECTRON_BUILDER_INVALID_CONFIGURATION") { | ||
super(message); | ||
this.code = code; | ||
} | ||
} | ||
exports.InvalidConfigurationError = InvalidConfigurationError; //# sourceMappingURL=util.js.map |
{ | ||
"name": "builder-util", | ||
"version": "4.1.7", | ||
"version": "4.2.0", | ||
"main": "out/util.js", | ||
@@ -23,3 +23,3 @@ "author": "Vladimir Krivosheev", | ||
"source-map-support": "^0.5.1", | ||
"7zip-bin": "^2.3.4", | ||
"7zip-bin": "^2.4.1", | ||
"ini": "^1.3.5", | ||
@@ -26,0 +26,0 @@ "tunnel-agent": "^0.6.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
202860
2506
Updated7zip-bin@^2.4.1