Vue-cli-plugin-electron-builder: Support Electron 7

Created on 18 Nov 2019  路  12Comments  路  Source: nklayman/vue-cli-plugin-electron-builder

Electron 7 has been released:

https://electronjs.org/releases/stable

Most helpful comment

v2.0.0 beta supports electron 7.

All 12 comments

Actually - it is supported - it's just not in the wizard.

No. It is not supported.
See #540 #546

Electron 7 works fine with this plugin (except for https://github.com/nklayman/vue-cli-plugin-electron-builder/issues/546, but that is quite minor). I don't have it available in the wizard because of issues with spectron. Feel free to use it in you apps (as long as you aren't using spectron).

Thanks

How do you enable Electron v7? Is it just a matter of installing with v6 then changing the electron entry in package.json and running npm install?

Yep, as long as you don't use spectron that works fine.

is spectron mean vue-cli-service electron:serve ?

No, spectron is a e2e testing framework for electron.

throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')

https://github.com/electron/electron/issues/20994#issuecomment-566884880

@nklayman please keep in mind Electron 7.x no longer uses the electron.asar file. Perhaps some changes will need to be made in vue-cli-plugin-electron-builder to adapt to that change.

Also, do you have a specific date in mind for the release that supports Electron 7.x (which is gonna be 2.0.0 I assume) or at least an approximate date?

@nklayman please keep in mind Electron 7.x no longer uses the electron.asar file. Perhaps some changes will need to be made in vue-cli-plugin-electron-builder to adapt to that change.

Also, do you have a specific date in mind for the release that supports Electron 7.x (which is gonna be 2.0.0 I assume) or at least an approximate date?

i fix it use yarn upgrade

v2.0.0 beta supports electron 7.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TrustNguyen picture TrustNguyen  路  5Comments

HeiShanLaoYao889 picture HeiShanLaoYao889  路  5Comments

HarlanGitHub picture HarlanGitHub  路  4Comments

fridzema picture fridzema  路  4Comments

getflourish picture getflourish  路  5Comments