File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ export type MakeUniversalOpts = {
44
44
* Minimatch pattern of binaries that are expected to be the same x64 binary in both of the ASAR files.
45
45
*/
46
46
x64ArchFiles ?: string ;
47
+ /**
48
+ * Minimatch pattern of paths that should not receive an injected ElectronAsarIntegrity value
49
+ */
50
+ infoPlistsToIgnore ?: string ;
47
51
} ;
48
52
49
53
const dupedFiles = ( files : AppFile [ ] ) =>
@@ -321,7 +325,12 @@ export const makeUniversalApp = async (opts: MakeUniversalOpts): Promise<void> =
321
325
) ;
322
326
}
323
327
324
- const mergedPlist = { ...x64Plist , ElectronAsarIntegrity : generatedIntegrity } ;
328
+ const injectAsarIntegrity =
329
+ ! opts . infoPlistsToIgnore ||
330
+ minimatch ( plistFile . relativePath , opts . infoPlistsToIgnore , { matchBase : true } ) ;
331
+ const mergedPlist = injectAsarIntegrity
332
+ ? { ...x64Plist , ElectronAsarIntegrity : generatedIntegrity }
333
+ : { ...x64Plist } ;
325
334
326
335
await fs . writeFile ( path . resolve ( tmpApp , plistFile . relativePath ) , plist . build ( mergedPlist ) ) ;
327
336
}
You can’t perform that action at this time.
0 commit comments