react-electron-example icon indicating copy to clipboard operation
react-electron-example copied to clipboard

Error occurs when open built app: Could not get code signature for running application

Open mixj93 opened this issue 7 years ago • 3 comments

After I run $ yarn build

image

and open cra-electron.app

image

mixj93 avatar Feb 23 '19 08:02 mixj93

Did you ever find a fix for this?

maayanalbert avatar Dec 06 '19 21:12 maayanalbert

I had the same issue, but I found the solution. I believe it is related to code signing on macOS:

  1. Delete existing build folder (if you've already tried to yarn build)
  2. In the file "/public/electron.js/", remove the code:-
require("update-electron-app")({
  repo: "kitze/react-electron-example",
  updateInterval: "1 hour"
});
  1. Do a yarn build and the app in the dist folder should be working now. Hope it works for you too.

benhcai avatar Dec 27 '19 13:12 benhcai

Also try to remove the build option from the package.json

open-schnick avatar Sep 03 '21 09:09 open-schnick