@electron/universal
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -27,2 +27,7 @@ "use strict"; | ||
]); | ||
const MACHO_UNIVERSAL_MAGIC = new Set([ | ||
// universal | ||
0xcafebabe, | ||
0xbebafeca, | ||
]); | ||
exports.detectAsarMode = async (appPath) => { | ||
@@ -113,2 +118,5 @@ debug_1.d('checking asar mode of', appPath); | ||
} | ||
if (MACHO_UNIVERSAL_MAGIC.has(x64Content.readUInt32LE(0)) && MACHO_UNIVERSAL_MAGIC.has(arm64Content.readUInt32LE(0))) { | ||
continue; | ||
} | ||
if (!MACHO_MAGIC.has(x64Content.readUInt32LE(0))) { | ||
@@ -115,0 +123,0 @@ throw new Error(`Can't reconcile two non-macho files ${file}`); |
@@ -24,2 +24,7 @@ import * as asar from '@electron/asar'; | ||
]); | ||
const MACHO_UNIVERSAL_MAGIC = new Set([ | ||
// universal | ||
0xcafebabe, | ||
0xbebafeca, | ||
]); | ||
export const detectAsarMode = async (appPath) => { | ||
@@ -110,2 +115,5 @@ d('checking asar mode of', appPath); | ||
} | ||
if (MACHO_UNIVERSAL_MAGIC.has(x64Content.readUInt32LE(0)) && MACHO_UNIVERSAL_MAGIC.has(arm64Content.readUInt32LE(0))) { | ||
continue; | ||
} | ||
if (!MACHO_MAGIC.has(x64Content.readUInt32LE(0))) { | ||
@@ -112,0 +120,0 @@ throw new Error(`Can't reconcile two non-macho files ${file}`); |
{ | ||
"name": "@electron/universal", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Utility for creating Universal macOS applications from two x64 and arm64 Electron applications", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
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
95872
1127