I'm trying to build my veu electron app using electron builder. I want to target macOS and windows with a portable release, anyway after click on electron:build option in vue ui, it will only create the dmg for macOS. Here is my vue.config.js file. I'm not very experienced with electron builder, can anyone help me?
module.exports = {
pluginOptions: {
electronBuilder: {
outputDir: 'build',
builderOptions: {
mac: {
target: 'dmg',
icon: 'build/icon.icns',
asar: true
},
win: {
target: 'portable',
icon: 'build/icon.icns',
asar: true
}
},
preload: 'src/preload.js'
}
}
}