forked from creationix/topcube
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.js
More file actions
22 lines (22 loc) · 768 Bytes
/
package.js
File metadata and controls
22 lines (22 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var exec = require('child_process').exec;
switch (process.platform) {
case 'win32':
console.log('win32: Downloading CEF client...');
exec('curl -skL https://github.com/downloads/mapbox/cefclient/cefclient-0.0.2.tar.gz | tar zx', function(err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
return err ? process.exit(1) : process.exit(0);
});
break;
case 'linux':
exec('node-waf clean || true; node-waf configure build', function(err, stdout, stderr) {
console.log(stdout);
console.log(stderr);
return err ? process.exit(1) : process.exit(0);
});
break;
default:
console.log('Topcube currently does not support %s', process.platform);
return process.exit(0);
break;
}