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 themain
property of yourpackage.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)