@@ -14,7 +14,6 @@ import rebuildHook from './util/rebuild';
14
14
import resolveDir from './util/resolve-dir' ;
15
15
16
16
const main = async ( ) => {
17
- const prepareSpinner = ora . ora ( 'Preparing to Package Application' ) . start ( ) ;
18
17
let dir = process . cwd ( ) ;
19
18
20
19
program
@@ -35,6 +34,11 @@ const main = async () => {
35
34
} )
36
35
. parse ( process . argv ) ;
37
36
37
+ const arch = program . arch || process . arch ;
38
+ const platform = program . platform || process . platform ;
39
+
40
+ let prepareSpinner = ora . ora ( `Preparing to Package Application for arch: ${ ( arch === 'all' ? 'ia32' : arch ) . cyan } ` ) . start ( ) ;
41
+
38
42
dir = await resolveDir ( dir ) ;
39
43
if ( ! dir ) {
40
44
prepareSpinner . fail ( ) ;
@@ -45,17 +49,20 @@ const main = async () => {
45
49
46
50
const packageJSON = JSON . parse ( await fs . readFile ( path . resolve ( dir , 'package.json' ) , 'utf8' ) ) ;
47
51
48
- const arch = program . arch || process . arch ;
49
- const platform = program . platform || process . platform ;
50
-
51
52
const forgeConfig = await getForgeConfig ( dir ) ;
52
53
let packagerSpinner ;
53
54
55
+ // const targetCallCount = arch === 'all' ? (platform === 'darwin' ? 1 : 2) : 1; // eslint-disable-line
56
+
54
57
const packageOpts = Object . assign ( {
55
58
asar : false ,
56
59
overwrite : true ,
57
60
} , forgeConfig . electronPackagerConfig , {
58
61
afterCopy : [ async ( buildPath , electronVersion , pPlatform , pArch , done ) => {
62
+ if ( packagerSpinner ) {
63
+ packagerSpinner . succeed ( ) ;
64
+ prepareSpinner = ora . ora ( `Preparing to Package Application for arch: ${ 'x64' . cyan } ` ) . start ( ) ;
65
+ }
59
66
await pify ( rimraf ) ( path . resolve ( buildPath , 'node_modules/electron-compile/test' ) ) ;
60
67
done ( ) ;
61
68
} , async ( ...args ) => {
0 commit comments