Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnableEmbeddedAsarIntegrityValidation instantly exits app - only on macOS #7

Closed
Nantris opened this issue Mar 2, 2022 · 5 comments
Closed

Comments

@Nantris
Copy link

Nantris commented Mar 2, 2022

Enabling the EnableEmbeddedAsarIntegrityValidation fuse leads to our app instantly exiting on macOS. On other platforms though, everything keeps working properly with it enabled.

I'm not sure if this means it breaks the macOS build, or if maybe it's not actually applied except on the macOS platform? Any thoughts?

@Nantris
Copy link
Author

Nantris commented Jun 8, 2022

Nobody else is seeing this? I'd really like to get this working!

@complexspaces
Copy link

Hi there, I'm not one of the Electron developers but I can say that this fuse currently does nothing on non-macOS platforms.

What library are you using to package your application? This fuse requires a specific set of hashes to be present in the ASAR bundle.

@Nantris
Copy link
Author

Nantris commented Jun 8, 2022

Thanks for your reply @complexspaces!

this fuse currently does nothing on non-macOS platforms.

I noticed that while reviewing the docs today. Do you have further reading on the hashes you mentioned?

We're using Electron-Builder to package our app. I know 23.x.x is out, but we're still on the 22.x.x branch.

@complexspaces
Copy link

...Do you have further reading on the hashes you mentioned?

They linked a short document in the PR which added this fuse originally.

We're using Electron-Builder to package our app.

That would be your problem 😅. If you look at the official @electron/asar package, there is a module dedicated to generating these hashes. electron-builder, however, rolled their own ASAR creation code which doesn't have support for creating these hashes. You'd either need to patch/upstream an addition to electron-builder (or maybe switch them to the official package 🙈) or manually create the .asar bundle yourself.

@Nantris
Copy link
Author

Nantris commented Jun 8, 2022

Many thanks for the info @complexspaces!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants