nklayman / vue-cli-plugin-electron-builder

Easily Build Your Vue.js App For Desktop With Electron

Home Page:https://nklayman.github.io/vue-cli-plugin-electron-builder/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autoUpdater.checkForUpdatesAndNotify() does not work.

kurohoan opened this issue · comments

https://github.com/nklayman/vue-cli-plugin-electron-builder/blob/master/docs/guide/recipes.md

The same description is based on the above manual.
The build itself is successful, the latest version is released from github, but there is no update notification when the older version is launched.

By the way, it is a private repository.
In the meantime, I also tried the following report, but the symptoms did not change.
#1103

Is there any way to identify the error?

In order to identify the error, checkForUpdatesAndNotify() is also run on electron:serve in the following code.

Object.defineProperty(app, 'isPackaged', {
  get() {
    return true;
  }
});

As a result, the following error is displayed.

Error: Error: ENOENT: no such file or directory, open 'C:\Users***\node_modules\electron\dist\resources\app-update.yml'

What could cause this?

C:\Users***\node_modules\electron\dist\resources\app-update.yml

In fact, no files exist in the above location.