Developing
quasar dev -m electron
# ..or the longer form:
quasar dev --mode electron
# passing extra parameters and/or options to
# underlying "electron" executable:
quasar dev -m electron -- --force-device-scale-factor=1
# when on Windows and using Powershell:
quasar dev -m electron '--' --force-device-scale-factor=1It opens an Electron window. The default template also opens renderer DevTools. The renderer supports HMR; changing a main or preload source rebuilds it and restarts Electron.
Arguments after -- are forwarded to Electron. The sandbox-disabling arguments above illustrate forwarding syntax, but should only be used when a constrained environment requires them and after considering the security impact.
See Configuring Electron to extend the Rolldown configurations for the main process and preload scripts.
Chrome DevTools
While in dev mode, hit the following combination (while your app window has focus):
- macOS: Cmd Alt I or F12
- Linux: Ctrl Shift I or F12
- Windows: Ctrl Shift I or F12
Vue DevTools
To load Vue DevTools for the renderer process:
quasar dev -m electron --devtoolsBuilding for Production
quasar build -m electron
# ..or the longer form:
quasar build --mode electronIt builds the application and packages it with the configured bundler. The default is @electron/packager; select electron-builder when you need its installer, signing, or publishing features. See Configuring Electron.
If you want a production build with debugging enabled for the UI code:
quasar build -m electron -d
# ..or the longer form
quasar build -m electron --debugHere is the folder structure of the outcome:
Cross-platform packaging
Packaging, signing, and native dependencies impose host-platform restrictions. For example, signing a macOS application requires macOS, and packaging Windows resources from another platform may require Wine. Check the selected bundler’s platform requirements and build each target on a matching host or CI runner when signing or native modules are involved.
Publishing (electron-builder only)
quasar build -m electron -P always
# ..or the longer form:
quasar build --mode electron --publish alwaysSelect electron-builder on the command line (--bundler builder) or in quasar.config at electron.bundler. The publish option only applies to electron-builder.
Valid values for -P are onTag, onTagOrDraft, always, and never. Configure a supported provider in quasar.config > electron > builder > publish; see the current electron-builder publishing documentation.
A very basic configuration to publish a Windows EXE setup file to Amazon S3 might look like this:
electron: {
bundler: 'builder', // set here instead of using command line flag --bundler
builder: {
appId: 'com.electron.myelectronapp',
win: {
target: 'nsis'
},
publish: {
provider: 's3',
bucket: 'myS3bucket'
}
}
}