@electron/universal
Advanced tools
Comparing version
@@ -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
95872
1.02%1127
1.44%