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

"Electron.app" is damaged and can't be opened #148

Closed
slhck opened this issue Mar 16, 2023 · 3 comments
Closed

"Electron.app" is damaged and can't be opened #148

slhck opened this issue Mar 16, 2023 · 3 comments

Comments

@slhck
Copy link

slhck commented Mar 16, 2023

I downloaded the electron-v23.1.3+wvcus-darwin-arm64.zip file.

But for some reason I cannot open the app:

image

This appears whenever I try to start Electron.app or run it from within Electron Fiddle.

My system is a M1 MacBook Pro running macOS 12.6.3.

@slhck
Copy link
Author

slhck commented Mar 16, 2023

It appears that running this fixes the problem:

sudo xattr -d com.apple.quarantine Electron.app

I think it would be good to add this to the documentation somewhere?

@slhck slhck closed this as completed Mar 16, 2023
@khwaaj
Copy link
Collaborator

khwaaj commented Mar 16, 2023

For the record, this is not something we are doing (and the behavior would be the same with stock Electron).

If you download the Electron zip with something like Safari on macOS it will add the quarantine tag to the zip. If you then extract the archive in the Finder it will propagate to Electron.app as well, yielding the behavior you are seeing. This is not typically how Electron should be used though, since it is not really a complete application by itself. Using something like npm/yarn to create a build environment for your own application based on Electron will not exhibit this problem.

@slhck
Copy link
Author

slhck commented Mar 16, 2023

I understand! It's just the error message that's not very informative. In my case I am using Electron Fiddle which does require the custom app file and exhibit the same issue. Maybe future readers will find this issue.

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