Make sure python2.7 is installed on win32

Closes #2193 
Closes #2167
Closes atom/node-runas#5
This commit is contained in:
Corey Johnson
2014-05-14 15:29:21 -07:00
parent aeac32ae47
commit 0b5b741db4

View File

@@ -6,9 +6,18 @@ if (nodeMinorVersion !== '10') {
process.exit(1);
}
if (process.platform == 'win32' && process.arch != 'ia32') {
console.warn("You must run script/bootstrap and script/build with the 32bit version of node");
process.exit(1);
if (process.platform == 'win32') {
// Make sure it is 32bit node
if (process.arch != 'ia32') {
console.warn("You must run script/bootstrap and script/build with the 32bit version of node");
process.exit(1);
}
// Make sure python2.7 is installed
if (!fs.existsSync('C:\\Python27\\')) {
console.warn("You must have Python 2.7 installed at 'C:\\Python27\\'");
process.exit(1);
}
}
var safeExec = require('./utils/child-process-wrapper.js').safeExec;