Electron builds
-
I’ve created my first Electron project using Quasar. It’s building for Linux as that is my development OS. I’d like to build for other platforms, like Windows.
My understanding from the docs is that this shoudl work:
quasar build -m electron win32 -t mat
or
quasar build -m electron all -t mat
But it still builds for Linux in the dist folder.
Anyone got this solved and can point me in the right direction? -
i think you need to be under the dev os that you want it to build.
-
You must setup electron properties in your quasar.conf.js project file. Next an example how to build win32 portable app.
module.exports = function(ctx) { return { electron: { // bundler: 'builder', // or 'packager' extendWebpack(cfg) { // do something with Electron process Webpack cfg }, packager: { platform: 'win32' }, builder: { // https://www.electron.build/configuration/configuration win: { target: 'portable' } } } } }
-
Yep, all good. You can see my tutorial here: https://medium.com/quasar-framework/building-an-electron-file-explorer-with-quasar-and-vue-7bf94f1bbf6