Skip to content

Asar: true failing on Windows for electron-builder 5.x #482

@dharders

Description

@dharders

New changes to asar archiving in 5.x.x leads to an incorrect/corrupt win-unpacked/resources/app.asar when "build" : { "asar" : true } on Windows.

Hence, when the app is opened via Setup.exe (or app.exe) you get the exception "Error: Unable to find a valid app" in the main process. This is expected as app.asar is corrupt (only a few kB, normally ~5MB).

If I set asar: false, everything works.

Last known working version with asar: true was 4.2.6.

Note: I inspected the corrupt app.asar in vscode and it showed the directory/file structure to be correct, but the files were empty (or appeared as directories instead of files).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions