This document explains how to run your distributed unsigned apps, which is a common scenario when you are developing and can't afford to sign your apps yet.
By default, macOS blocks the execution of unsigned apps. To bypass this:
- Download the app and move it to the
Applications
folder (optional). - When trying to open it, you will see a warning that the app cannot be opened.
- Go to
System Preferences
>Security & Privacy
>General
. - In the "Allow apps downloaded from" section, click
Open Anyway
for the blocked app. - If needed, run this command in the Terminal:
or
xattr -c '/Applications/Your App.app'
orxattr -d com.apple.quarantine '/Applications/Your App.app'
codesign --force --deep --sign - '/Applications/Your App.app'
- The app should now open normally.
On Linux, execution permission may be disabled by default. To run the app:
- Download the app and move it to the desired folder.
- Open the Terminal and navigate to the app's folder.
- Run the following command:
chmod +x YourApp
- Now you can run the app by double-clicking it or running it from the Terminal.
On Windows, SmartScreen may block the app. To run it:
- When trying to open the app, a Windows Defender SmartScreen warning will appear.
- Click
More info
. - Click
Run anyway
.
Now you can run your Electron app without issues!