From c02695f82cc91b13b5023ea956d60682c461b93b Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Wed, 12 Oct 2022 12:20:26 -0700 Subject: [PATCH] fix: remove ElectronAsarIntegrity when asar is disabled (#1281) * fix: remove ElectronAsarIntegrity when asar is disabled * docs: update NEWS * chore: fix tests * Update NEWS.md --- NEWS.md | 4 ++++ src/mac.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/NEWS.md b/NEWS.md index 91cb4c8f..d6fe65ee 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,10 @@ [Unreleased]: https://github.com/electron/electron-packager/compare/v16.0.0...main +### Fixed + +* `ElectronAsarIntegrity` is now automatically removed from the `asar` option is disabled (#1281) + ## [16.0.0] - 2022-08-23 [16.0.0]: https://github.com/electron/electron-packager/compare/v15.5.1...v16.0.0 diff --git a/src/mac.js b/src/mac.js index 2d6e769b..6f09b270 100644 --- a/src/mac.js +++ b/src/mac.js @@ -198,6 +198,8 @@ class MacApp extends App { await this.extendPlist(this.appPlist, { ElectronAsarIntegrity: this.asarIntegrity }) + } else { + delete this.appPlist.ElectronAsarIntegrity } this.appPlist = this.updatePlist(this.appPlist, this.executableName, appBundleIdentifier, this.appName)