No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Electron builds

    Help
    3
    4
    1417
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Hawkeye64
      Hawkeye64 last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by

        i think you need to be under the dev os that you want it to build.

        1 Reply Last reply Reply Quote 0
        • CristalT
          CristalT last edited by

          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'
                          }
                      }
                  }
              }
          }
          
          
          1 Reply Last reply Reply Quote 0
          • Hawkeye64
            Hawkeye64 last edited by

            Yep, all good. You can see my tutorial here: https://medium.com/quasar-framework/building-an-electron-file-explorer-with-quasar-and-vue-7bf94f1bbf6

            1 Reply Last reply Reply Quote 0
            • First post
              Last post