quasar-cli icon indicating copy to clipboard operation
quasar-cli copied to clipboard

quasar build -m electron overwrites all previous electron builds in the dist folder

Open dannyconnell opened this issue 7 years ago • 0 comments

Software version

OS: Mac Node: 8.11.2 NPM: 5.6.0 Quasar CLI: 0.17.7

What did you get as the error?

Running quasar build -m electron overwrites any previously created electron builds in the dist folder.

What were you expecting?

I would expect previous builds (of a different architecture / platform) to remain, alongside the newly created build. For example, when creating Windows 10 apps, you need to build both a 32-bit version and a 64-bit version - so the desire would be to first create the 64-bit version, then create the 32-bit version without the 64-bit version being deleted.

What steps did you take, to get the error?

  • In quasar.conf.js, set the architecture to 64-bit and the platform to Windows:
electron: {
  packager: {
    platform: 'win32',
    arch: 'x64'
  }
}
  • Create the build: quasar build -m electron
  • This will create the build in the folder dist > electron-mat > MyApp-win32-x64
  • Now, change the architecture to 32-bit:
electron: {
  packager: {
    platform: 'win32',
    arch: 'ia32'
  }
}
  • Create the build: quasar build -m electron
  • Once complete, note that the first build folder (MyApp-win32-x64) has been removed

dannyconnell avatar Aug 31 '18 14:08 dannyconnell