Skip to content

ASAR integrity corrupt in v19 #1873

@UndefinedOffset

Description

@UndefinedOffset

Preflight Checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Issue Details

  • Electron Packager Version:
    • 19.0.2
  • Electron Version:
    • 40.1.0
  • Operating System:
    • Windows 11
  • Last Known Working Electron Packager version::
    • 18.4.4

Expected Behavior

Asar integrity resource embeded into the application should be a json payload i.e

[{"file":"resources\\app.asar","alg":"SHA256","value":"..."}]

Actual Behavior

Integrity generated ends up being completely corrupt when viewed with Resource Hacker there is a list of files at the top, then the json payload that should be present then a bunch of corrupt data. This results in electron not launching with an error "Invalid integrity config: NOT a valid JSON.".

To Reproduce

Package any Electron app that would have an asar file with the fuse flipped to ensure asar integrity, the packaged application will not launch on windows stating the integrity is invalid. When looking in Resource Hacker the integrity resource will be corrupt and not just a json string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions