forked from sproutcore/build-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost_install.js
More file actions
28 lines (25 loc) · 842 Bytes
/
post_install.js
File metadata and controls
28 lines (25 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*jshint node:true*/
var os = require('os');
var cp = require('child_process');
var util = require('util');
var pathlib = require('path');
// the first thing to do is to checkout sproutcore
//
var buildtools = require(pathlib.join(__dirname, 'index.js'));
util.log('Installing sproutcore as global dependency, this can take a while...');
buildtools.startInstall(process.cwd(), {
gitUrl: "git://github.com/sproutcore/sproutcore",
isGlobal: true,
isSilent: true,
branch: "team/mauritslamers/newbt"
});
if (os.platform() === "darwin") {
util.log("OSX detected, installing fsevents...");
var proc = cp.spawn("npm", ["install", "git://github.com/mauritslamers/fsevents-bin"]);
proc.stdout.on('data', function (d) {
console.log(d.toString());
});
proc.stderr.on('data', function (d) {
console.log(d.toString());
});
}