Skip to content

Commit

Permalink
fix: remove ElectronAsarIntegrity when asar is disabled (#1281)
Browse files Browse the repository at this point in the history
* fix: remove ElectronAsarIntegrity when asar is disabled

* docs: update NEWS

* chore: fix tests

* Update NEWS.md
  • Loading branch information
MarshallOfSound authored Oct 12, 2022
1 parent f6e353a commit c02695f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/mac.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c02695f

Please sign in to comment.