File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,16 @@ module.exports = (api, options) => {
26
26
`See https://www.electron.build/cli for cli options\n` +
27
27
`See https://github.com/nklayman/vue-cli-plugin-electron-builder for more details about this plugin.`
28
28
} ,
29
- async args => {
29
+ async ( args , rawArgs ) => {
30
30
const buildRenderer = require ( '@vue/cli-service/lib/commands/build' ) . build
31
31
const fs = require ( 'fs-extra' )
32
32
const builder = require ( 'electron-builder' )
33
+ const yargs = require ( 'yargs' )
34
+ const configureBuildCommand = require ( 'electron-builder/out/builder' )
35
+ . configureBuildCommand
36
+ const builderArgs = yargs
37
+ . command ( [ 'build' , '*' ] , 'Build' , configureBuildCommand )
38
+ . parse ( rawArgs )
33
39
const rendererConfig = api . resolveChainableWebpackConfig ( )
34
40
const defaultBuildConfig = {
35
41
directories : {
@@ -124,7 +130,7 @@ module.exports = (api, options) => {
124
130
...defaultBuildConfig ,
125
131
...userBuildConfig
126
132
} ,
127
- ...args
133
+ ...builderArgs
128
134
} )
129
135
. then ( ( ) => {
130
136
// handle result
You can’t perform that action at this time.
0 commit comments