This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -88,27 +88,27 @@ var argv = Object.assign(Constants.DefaultOptions, yargs
88
88
alias : 'd'
89
89
} ) . argv ) ;
90
90
91
- var BinaryPath = sass . getBinaryPath ( argv ) ;
92
- if ( ! argv . force && fs . existsSync ( BinaryPath ) ) {
93
- console . log ( 'Binary found at' , BinaryPath ) ;
94
- process . exit ( 0 ) ;
95
- }
96
-
97
91
var gypOptions = {
98
92
arch : argv . arch ,
99
93
jobs : argv . jobs ,
100
94
target : argv . target ,
101
95
debug : argv . debug
102
96
} ;
97
+ if ( ModuleDetails [ 0 ] === Constants . Runtimes . ELECTRON ) {
98
+ gypOptions [ 'dist-url' ] = 'https://atom.io/download/electron' ;
99
+ argv . arch = gypOptions . arch = process . platform === 'win32' ? 'ia32' : process . arch ;
100
+ }
101
+ var BinaryPath = sass . getBinaryPath ( argv ) ;
102
+ if ( ! argv . force && fs . existsSync ( BinaryPath ) ) {
103
+ console . log ( 'Binary found at' , BinaryPath ) ;
104
+ process . exit ( 0 ) ;
105
+ }
106
+
103
107
var ModuleDetails = Constants . ModuleVersions [ argv . modulesVersion ] ;
104
108
if ( ! ModuleDetails ) {
105
109
console . error ( 'Unknown Node Modules Version: ' + argv . modulesVersion ) ;
106
110
process . exit ( 1 ) ;
107
111
}
108
- if ( ModuleDetails [ 0 ] === Constants . Runtimes . ELECTRON ) {
109
- gypOptions [ 'dist-url' ] = 'https://atom.io/download/electron' ;
110
- argv . arch = gypOptions . arch = process . platform === 'win32' ? 'ia32' : process . arch ;
111
- }
112
112
113
113
build ( gypOptions , function ( errorCode ) {
114
114
if ( errorCode ) {
You can’t perform that action at this time.
0 commit comments