Allow script/cibuild to run on windows

This commit is contained in:
Matt Colyer 2013-12-16 17:33:45 -08:00
parent 3e41b0967f
commit fa34eea27a

View File

@ -5,8 +5,8 @@ var path = require('path');
process.chdir(path.dirname(__dirname));
if (process.platform != 'darwin')
throw new Error('cibuild can not run on ' + process.platform + ' yet!');
if (process.platform == 'linux' )
throw new Error('cibuild can not run on linux yet!');
var homeDir = process.platform == 'win32' ? process.env.USERPROFILE : process.env.HOME;