File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ const d = debug('electron-forge:packager');
23
23
* @property {boolean } [interactive=false] Whether to use sensible defaults or prompt the user visually
24
24
* @property {string } [arch=process.arch] The target arch
25
25
* @property {string } [platform=process.platform] The target platform. NOTE: This is limited to be the current platform at the moment
26
+ * @property {string } [outDir=`${dir}/out`] The path to the output directory for packaged apps
26
27
*/
27
28
28
29
/**
@@ -40,6 +41,7 @@ export default async (providedOptions = {}) => {
40
41
platform : process . platform ,
41
42
} , providedOptions ) ;
42
43
44
+ const outDir = providedOptions . outDir || `${ dir } /out` ;
43
45
let prepareSpinner = ora ( `Preparing to Package Application for arch: ${ ( arch === 'all' ? 'ia32' : arch ) . cyan } ` ) . start ( ) ;
44
46
let prepareCounter = 0 ;
45
47
@@ -97,7 +99,7 @@ export default async (providedOptions = {}) => {
97
99
dir,
98
100
arch,
99
101
platform,
100
- out : path . resolve ( dir , 'out' ) ,
102
+ out : outDir ,
101
103
electronVersion : packageJSON . devDependencies [ 'electron-prebuilt-compile' ] ,
102
104
} ) ;
103
105
packageOpts . quiet = true ;
You can’t perform that action at this time.
0 commit comments