megahertz / electron-simple-updater

Simple way to enable update for the electron application
MIT License
369 stars 75 forks source link

electron-simple-updater is not initialized #24

Closed debelop13 closed 7 years ago

debelop13 commented 7 years ago

I have ember electron app compiled with electron-forge.

I run with your example.. and console is showing "electron-simple-updater is not initialized", what is going on?

Andd when I run checkforupdates.. it shows "update is disabled" without any error..

Also, I put disabled to false, and neither is not working

updater.init({ checkUpdateOnStart: false, autoDownload: false, disabled: false, });

In package.json

"updater": { "url": "https://raw.githubusercontent.com/megahertz/electron-simple-updater/master/example/updates.json" },

Thanks!!

megahertz commented 7 years ago

Check what app.getName() returns. It should not be 'Electron'.

megahertz commented 7 years ago

Alos, it is disabled automatically for win/mac app store

debelop13 commented 7 years ago

app.getName returns undefined.. updater.version or updater.buildId also returns undefined..

Is not initializing in my main.js ..

debelop13 commented 7 years ago

If I execute your example like this "electron app/main.js" also is not initializing.. why?

megahertz commented 7 years ago

@debelop13 Update can work only for a compiled application