npm vue-cli-plugin-electron-builder 1.0.0-rc.4
RC 4 - BREAKING CHANGE, new command names, lots of fixes and features

latest releases: 3.0.0-alpha.4, 3.0.0-alpha.3, 3.0.0-alpha.2...
6 years ago

Breaking Changes

Yes, I know it is in RC phase, but these needed to happen before the final release.

This release changes the command names!
Before:
yarn (serve|build):electron
After:
yarn electron:(serve|build)
This was changed to make it match other Vue CLI Plugins, see #94 for more info.

You MUST re-invoke the generator if you upgrade to this version. To do so, run vue invoke electron-builder. This is caused because:
Previously, your app would be packaged relative to the project's root. Since your built code is placed in dist_electron/bundled, __dirname in a built app would be [path-to-install]/resources/app.asar/dist_electron/bundled/. Now, it is packaged relative to dist_electron/bundled. In a built app, __dirname would be [path-to-install]/resources/app.asar/. __static and process.env.BASE_URL will still function the same.

Features

  • You can now choose your desired Electron version when adding this plugin (ec48369)
  • CLI output is prettier, and errors when bundling the main process are friendlier (#105, 61510e7)
  • Custom electron args are now supported (#93, b45b2ef) thanks @zdevwu
  • The output dir can be set with --dest, and changing it no longer requires you to set the main property of your package.json (7e4afa6)
  • Environment variables prefixed with VUE_APP_ can now be accessed in the main process (#83, 23ff11b)

Bug Fixes

  • Electron is killed gracefully during development (#110, ed0bcb8) Huge thanks to @Desuuuu
  • Entry name is now used as output file. This makes it easier to add files to the main process bundling (#106, dc9940b)
  • The installation process of VueJS devtools now supports a dynamically set userData path (83229ec)

Don't miss a new vue-cli-plugin-electron-builder release

NewReleases is sending notifications on new releases.