File tree Expand file tree Collapse file tree 2 files changed +1
-23
lines changed Expand file tree Collapse file tree 2 files changed +1
-23
lines changed Original file line number Diff line number Diff line change 3
3
4
4
'use strict' ;
5
5
6
- const fs = require ( 'fs' ) ;
7
6
const path = require ( 'path' ) ;
8
7
const spawnSync = require ( './lib/spawn-sync' ) ;
9
8
@@ -77,7 +76,7 @@ function getAppName(channel) {
77
76
return channel === 'stable'
78
77
? 'Atom'
79
78
: `Atom ${ process . env . ATOM_CHANNEL_DISPLAY_NAME ||
80
- channel . charAt ( 0 ) . toUpperCase ( ) + channel . slice ( 1 ) } `;
79
+ channel . charAt ( 0 ) . toUpperCase ( ) + channel . slice ( 1 ) } `;
81
80
}
82
81
83
82
function getExecutableName ( channel , appName ) {
Original file line number Diff line number Diff line change 3
3
const childProcess = require ( 'child_process' ) ;
4
4
const path = require ( 'path' ) ;
5
5
6
- const CONFIG = require ( '../config' ) ;
7
-
8
6
module . exports = function ( ci ) {
9
7
verifyNode ( ) ;
10
- // verifyNpm(ci);
11
8
verifyPython ( ) ;
12
9
} ;
13
10
@@ -24,24 +21,6 @@ function verifyNode() {
24
21
}
25
22
}
26
23
27
- function verifyNpm ( ci ) {
28
- const stdout = childProcess . execFileSync (
29
- CONFIG . getNpmBinPath ( ci ) ,
30
- [ '--version' ] ,
31
- { env : process . env }
32
- ) ;
33
- const fullVersion = stdout . toString ( ) . trim ( ) ;
34
- const majorVersion = fullVersion . split ( '.' ) [ 0 ] ;
35
- const oldestMajorVersionSupported = ci ? 6 : 3 ;
36
- if ( majorVersion >= oldestMajorVersionSupported ) {
37
- console . log ( `Npm:\tv${ fullVersion } ` ) ;
38
- } else {
39
- throw new Error (
40
- `npm v${ oldestMajorVersionSupported } + is required to build Atom. npm v${ fullVersion } was detected.`
41
- ) ;
42
- }
43
- }
44
-
45
24
function verifyPython ( ) {
46
25
// This function essentially re-implements node-gyp's "find-python.js" library,
47
26
// but in a synchronous, bootstrap-script-friendly way.
You can’t perform that action at this time.
0 commit comments