This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 613
/
Copy pathsetup.js
691 lines (566 loc) · 24.7 KB
/
setup.js
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
/*
* Copyright (c) 2013 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
*/
"use strict";
module.exports = function (grunt) {
var common = require("./common")(grunt),
fs = require("fs"),
path = require("path"),
q = require("q"),
/* win only (lib), mac only (Resources, tools) */
CEF_MAPPING = {
"deps/cef/Debug" : "Debug",
"deps/cef/include" : "include",
"deps/cef/lib" : "lib",
"deps/cef/libcef_dll" : "libcef_dll",
"deps/cef/Release" : "Release",
"deps/cef/Resources" : "Resources",
"deps/cef/tools" : "tools"
},
/* use promises instead of callbacks */
link,
rename = common.rename,
exec = common.exec,
platform = common.platform();
// cross-platform symbolic link
link = (function () {
var typeArg,
symlink;
if (process.platform === "win32") {
typeArg = "junction";
}
symlink = q.denodeify(fs.symlink);
return function (srcpath, destpath) {
return symlink(srcpath, destpath, typeArg);
};
}());
function unzip(src, dest) {
grunt.verbose.writeln("Extracting " + src);
return exec("unzip -q \"" + src + "\" -d \"" + dest + "\"");
}
// task: cef
grunt.registerTask("cef", "Download and setup CEF", function () {
var config = "cef-" + platform + common.arch(),
zipSrc = grunt.config("curl-dir." + config + ".src"),
zipName = path.basename(zipSrc),
zipDest = path.resolve(process.cwd(), path.join(grunt.config("curl-dir." + config + ".dest"), zipName)),
txtName;
// extract zip file name and set config property
grunt.config("cefZipDest", zipDest);
grunt.config("cefZipSrc", zipSrc);
grunt.config("cefZipName", zipName);
grunt.config("cefConfig", config);
// remove .zip extension
txtName = zipName.substr(0, zipName.lastIndexOf(".")) + ".txt";
// optionally download if CEF is not found
if (!grunt.file.exists("deps/cef/" + txtName)) {
var cefTasks = ["cef-clean", "cef-extract", "cef-symlinks"];
if (grunt.file.exists(zipDest)) {
grunt.verbose.writeln("Found CEF download " + zipDest);
} else {
cefTasks.unshift("cef-download");
}
grunt.task.run(cefTasks);
} else {
grunt.verbose.writeln("Skipping CEF download. Found deps/cef/" + txtName);
}
});
// task: cef-clean
grunt.registerTask("cef-clean", "Removes CEF binaries and linked folders", function () {
// delete dev symlinks from "setup_for_hacking"
common.deleteFile("Release/dev", { force: true });
common.deleteFile("Debug/dev", { force: true });
// delete symlinks to cef
Object.keys(CEF_MAPPING).forEach(function (key, index) {
common.deleteFile(CEF_MAPPING[key]);
});
// finally delete CEF binary\
common.deleteFile("deps/cef", { force: true });
});
// task: cef-download
grunt.registerTask("cef-download", "Download CEF, see curl-dir config in Gruntfile.js", function () {
// requires download-cef to set "cefZipName" in config
grunt.task.requires(["cef"]);
// run curl
grunt.log.writeln("Downloading " + grunt.config("cefZipSrc") + ". This may take a while...");
grunt.task.run("curl-dir:" + grunt.config("cefConfig"));
});
// task: icu
grunt.registerTask("icu", "Download and setup ICU", function () {
var config = "icu-" + platform + common.arch(),
zipSrc = grunt.config("curl-dir." + config + ".src"),
zipName = path.basename(zipSrc),
zipDest = path.resolve(process.cwd(), path.join(grunt.config("curl-dir." + config + ".dest"), zipName)),
txtName;
// extract zip file name and set config property
grunt.config("icuZipDest", zipDest);
grunt.config("icuZipSrc", zipSrc);
grunt.config("icuZipName", zipName);
grunt.config("icuConfig", config);
// remove .zip extension
txtName = zipName.substr(0, zipName.lastIndexOf(".")) + ".txt";
// optionally download if ICU is not found
if (!grunt.file.exists("deps/icu/" + txtName)) {
var icuTasks = ["icu-clean", "icu-extract"];
if (grunt.file.exists(zipDest)) {
grunt.verbose.writeln("Found ICU download " + zipDest);
} else {
icuTasks.unshift("icu-download");
}
grunt.task.run(icuTasks);
} else {
grunt.verbose.writeln("Skipping ICU download. Found deps/icu/" + txtName);
}
});
// task: icu-clean
grunt.registerTask("icu-clean", "Removes CEF binaries and linked folders", function () {
// delete dev symlinks from "setup_for_hacking"
common.deleteFile("Release/dev", { force: true });
common.deleteFile("Debug/dev", { force: true });
// finally delete ICU binary\
common.deleteFile("deps/icu", { force: true });
});
// task: icu-download
grunt.registerTask("icu-download", "Download ICU, see curl-dir config in Gruntfile.js", function () {
// requires download-icu to set "icuZipName" in config
grunt.task.requires(["icu"]);
// run curl
grunt.log.writeln("Downloading " + grunt.config("icuZipSrc") + ". This may take a while...");
grunt.task.run("curl-dir:" + grunt.config("icuConfig"));
});
// task: vs-crt
grunt.registerTask("vs-crt", "Download and setup VS CRT dlls", function () {
if (platform === "win") {
var config = "vs-crt-" + platform + common.arch(),
zipSrc = grunt.config("curl-dir." + config + ".src"),
zipName = path.basename(zipSrc),
zipDest = path.resolve(process.cwd(), path.join(grunt.config("curl-dir." + config + ".dest"), zipName)),
txtName;
// extract zip file name and set config property
grunt.config("vsCRTZipDest", zipDest);
grunt.config("vsCRTZipSrc", zipSrc);
grunt.config("vsCRTZipName", zipName);
grunt.config("vsCRTConfig", config);
// remove .zip extension
txtName = zipName.substr(0, zipName.lastIndexOf(".")) + ".txt";
// optionally download if vs-crt is not found
if (!grunt.file.exists("deps/vs-crt/" + txtName)) {
var vsCRTTasks = ["vs-crt-clean", "vs-crt-extract"];
if (grunt.file.exists(zipDest)) {
grunt.verbose.writeln("Found VS CRT download " + zipDest);
} else {
vsCRTTasks.unshift("vs-crt-download");
}
grunt.task.run(vsCRTTasks);
} else {
grunt.verbose.writeln("Skipping vs-crt download. Found deps/vs-crt/" + txtName);
}
}
});
// task: vs-crt-clean
grunt.registerTask("vs-crt-clean", "Removes CEF binaries and linked folders", function () {
// delete dev symlinks from "setup_for_hacking"
common.deleteFile("Release/dev", { force: true });
common.deleteFile("Debug/dev", { force: true });
// finally delete vs-crt binary\
common.deleteFile("deps/vs-crt", { force: true });
});
// task: vs-crt-download
grunt.registerTask("vs-crt-download", "Download vs crt, see curl-dir config in Gruntfile.js", function () {
// requires download-vs-crt to set "vsCRTZipName" in config
grunt.task.requires(["vs-crt"]);
// run curl
grunt.log.writeln("Downloading " + grunt.config("vsCRTZipSrc") + ". This may take a while...");
grunt.task.run("curl-dir:" + grunt.config("vsCRTConfig"));
});
function cefFileLocation() {
return path.resolve(process.cwd(), "deps/cef");
}
// Deduct the configuration (debug|release) from the zip file name
function symbolCompileConfiguration(zipFileName) {
if (zipFileName) {
var re = /\w+?[\d+\.\d+\.\d+]+_\w+?_(\w+?)_\w+\.zip/;
var match = zipFileName.match(re);
if (!match) {
grunt.log.error("File name doesn't match the pattern for cef symbols:", zipFileName);
return zipFileName;
}
return match[1];
} else {
grunt.log.error("Please provide a zip file name");
}
}
grunt.registerTask("cef-symbols", "Download and unpack the CEF symbols", function () {
var config = "cef-" + platform + common.arch() + "-symbols",
zipSymbols = grunt.config("curl-dir." + config + ".src");
if (zipSymbols) {
var symbolSrcUrls = zipSymbols;
if (!Array.isArray(zipSymbols)) {
symbolSrcUrls = [];
symbolSrcUrls.push(zipSymbols);
}
symbolSrcUrls.forEach(function (srcUrl) {
var zipName = path.basename(srcUrl),
zipDest = path.resolve(process.cwd(), path.join(grunt.config("curl-dir." + config + ".dest"), zipName)),
txtName,
_symbolFileLocation;
// extract zip file name and set config property
grunt.config("cefConfig", config);
// remove .zip extension
txtName = path.basename(zipName, ".zip") + ".txt";
// optionally download if CEF is not found
_symbolFileLocation = path.join(cefFileLocation(), symbolCompileConfiguration(zipName));
if (!grunt.file.exists(path.resolve(path.join(_symbolFileLocation, txtName)))) {
// pass the name of the zip file
var zipDestSafe = zipDest.replace(":", "|");
var cefTasks = ["cef-symbols-extract" + ":" + zipDestSafe];
if (grunt.file.exists(zipDest)) {
grunt.verbose.writeln("Found CEF symbols download " + zipDest);
} else {
cefTasks.unshift("cef-symbols-download" + ":" + config);
}
grunt.task.run(cefTasks);
} else {
grunt.verbose.writeln("Skipping CEF symbols download. Found " + _symbolFileLocation + "/" + txtName);
}
});
}
});
// task: cef-extract-symbols
grunt.registerTask("cef-symbols-extract", "Extract CEF symbols zip", function () {
grunt.task.requires(["cef-symbols"]);
var done = this.async(),
zipDest = arguments[0].replace("|", ":"),
zipName = path.basename(zipDest, '.zip'),
unzipPromise;
var symbolFileLocation = path.join(cefFileLocation(), symbolCompileConfiguration(path.basename(zipDest)));
// unzip to deps/cef
unzipPromise = unzip(zipDest, symbolFileLocation);
var symbolDir = path.join(symbolFileLocation, zipName);
unzipPromise.then(function () {
var rename = q.denodeify(fs.rename),
readdir = q.denodeify(fs.readdir);
return readdir(symbolDir).then(function (files) {
if (files.length) {
var promises = files.map(function (file) {
return rename(path.join(symbolDir, file), path.join(path.dirname(symbolDir), file));
});
return q.all(promises);
} else {
return;
}
}, function (err) {
return err;
});
}).then(function () {
var rmdir = q.denodeify(fs.rmdir);
return rmdir(symbolDir);
}).then(function () {
var memo = path.resolve(path.join(symbolFileLocation, zipName + ".txt"));
// write empty file with zip file
grunt.file.write(memo, "");
done();
}, function (err) {
grunt.log.writeln(err);
done(false);
});
});
// task: cef-download-symbols
grunt.registerTask("cef-symbols-download", "Download and extract the CEF debug/release symbols", function () {
grunt.task.requires(["cef-symbols"]);
var downloadConfig = arguments[0];
// run curl
grunt.log.writeln("Downloading " + downloadConfig + ". This may take a while...");
// curl doesn't give me the option to handle download errors on my own. If the requested file can't
// be found, curl will log an error to the console.
grunt.task.run("curl-dir:" + downloadConfig);
});
// task: cef-extract
grunt.registerTask("cef-extract", "Extract CEF zip", function () {
// requires cef to set "cefZipName" in config
grunt.task.requires(["cef"]);
var done = this.async(),
zipDest = grunt.config("cefZipDest"),
zipName = grunt.config("cefZipName"),
unzipPromise;
// unzip to deps/
unzipPromise = unzip(zipDest, "deps");
// remove .zip ext
zipName = path.basename(zipName, ".zip");
unzipPromise.then(function () {
// rename version stamped name to cef
return rename("deps/" + zipName, "deps/cef");
}).then(function () {
var memo = path.resolve(process.cwd(), "deps/cef/" + zipName + ".txt"),
permissionsPromise;
if (platform === "mac") {
// FIXME figure out how to use fs.chmod to only do additive mode u+x
permissionsPromise = exec("chmod u+x deps/cef/tools/*");
} else {
permissionsPromise = q.resolve();
}
return permissionsPromise.then(function () {
// write empty file with zip file
grunt.file.write(memo, "");
return q.resolve();
});
}).then(function () {
done();
}, function (err) {
grunt.log.writeln(err);
done(false);
});
});
// task: icu-extract
grunt.registerTask("icu-extract", "Extract ICU zip", function () {
// requires icu to set "icuZipName" in config
grunt.task.requires(["icu"]);
var done = this.async(),
zipDest = grunt.config("icuZipDest"),
zipName = grunt.config("icuZipName"),
unzipPromise;
// unzip to deps/
unzipPromise = unzip(zipDest, "deps");
// remove .zip ext
zipName = path.basename(zipName, ".zip");
unzipPromise.then(function () {
// rename version stamped name to cef
return rename("deps/" + zipName, "deps/icu");
}).then(function () {
var memo = path.resolve(process.cwd(), "deps/icu/" + zipName + ".txt"),
permissionsPromise;
permissionsPromise = q.resolve();
return permissionsPromise.then(function () {
// write empty file with zip file
grunt.file.write(memo, "");
return q.resolve();
});
}).then(function () {
done();
}, function (err) {
grunt.log.writeln(err);
done(false);
});
});
// task: vs-crt-extract
grunt.registerTask("vs-crt-extract", "Extract vs-crt zip", function () {
// requires vs-crt to set "vsCRTZipName" in config
grunt.task.requires(["vs-crt"]);
var done = this.async(),
zipDest = grunt.config("vsCRTZipDest"),
zipName = grunt.config("vsCRTZipName"),
unzipPromise;
// unzip to deps/
unzipPromise = unzip(zipDest, "deps");
// remove .zip ext
zipName = path.basename(zipName, ".zip");
unzipPromise.then(function () {
// rename version stamped name to cef
return rename("deps/" + zipName, "deps/vs-crt");
}).then(function () {
var memo = path.resolve(process.cwd(), "deps/vs-crt/" + zipName + ".txt"),
permissionsPromise;
permissionsPromise = q.resolve();
return permissionsPromise.then(function () {
// write empty file with zip file
grunt.file.write(memo, "");
return q.resolve();
});
}).then(function () {
done();
}, function (err) {
grunt.log.writeln(err);
done(false);
});
});
// task: cef-symlinks
grunt.registerTask("cef-symlinks", "Create symlinks for CEF", function () {
var done = this.async(),
path,
links = [];
// create symlinks
Object.keys(CEF_MAPPING).forEach(function (key, index) {
path = CEF_MAPPING[key];
// some paths to deps/cef/* are platform specific and may not exist
if (grunt.file.exists(key)) {
links.push(link(key, path));
}
});
// wait for all symlinks to complete
q.all(links).then(function () {
done();
}, function (err) {
grunt.log.error(err);
done(false);
});
});
// task: node-download
grunt.registerTask("node", "Download Node.js binaries and setup dependencies", function () {
var config = "node-" + platform + common.arch(),
nodeSrc = grunt.config("curl-dir." + config + ".src"),
nodeDest = [],
dest = grunt.config("curl-dir." + config + ".dest"),
curlTask = "curl-dir:" + config,
setupTask = "node-" + platform,
nodeVersion = grunt.config("node.version"),
txtName = "version-" + nodeVersion + ".txt",
missingDest = false;
// extract file name and set config property
nodeSrc = Array.isArray(nodeSrc) ? nodeSrc : [nodeSrc];
// curl-dir:node-win32 defines multiple downloads, account for this array
nodeSrc.forEach(function (value, index) {
nodeSrc[index] = value.substr(value.lastIndexOf("/") + 1);
nodeDest[index] = path.join(dest, nodeSrc[index]);
missingDest = missingDest || !grunt.file.exists(nodeDest[index]);
});
grunt.config("nodeSrc", nodeSrc);
grunt.config("nodeDest", nodeDest);
// optionally download if node is not found
if (!grunt.file.exists("deps/node/" + txtName)) {
if (!missingDest) {
grunt.verbose.writeln("Found node download(s) " + nodeDest);
grunt.task.run(["node-clean", setupTask]);
} else {
grunt.log.writeln("Downloading " + nodeSrc.toString() + ". This may take a while...");
grunt.task.run([curlTask, "node-clean", setupTask]);
}
} else {
grunt.verbose.writeln("Skipping Node.js download. Found deps/node/" + txtName);
}
});
grunt.registerTask("node-check", function() {
var done = this.async(),
promise,
systemNodeCheck,
bundledNodeCheck,
bundledNodeLocation,
bundledNodeVersion,
systemNodeVersion;
if (platform === "win") {
bundledNodeLocation = path.join("deps", "node", "node.exe");
}
else {
bundledNodeLocation = path.join("deps", "node", "bin", "Brackets-node");
}
bundledNodeCheck = exec(bundledNodeLocation + " -v");
bundledNodeCheck.then(function (bundleNodeCmdStdout) {
bundledNodeVersion = bundleNodeCmdStdout[0];
}).then(function() {
systemNodeCheck = exec("node -v");
return systemNodeCheck;
})
.then(function(systemNodeCmdStdout) {
systemNodeVersion = systemNodeCmdStdout[0];
return systemNodeVersion === bundledNodeVersion ? done() : done(false);
}, function (err) {
grunt.log.error(err);
done(false);
});
});
function nodeWriteVersion() {
// write empty file with node-version name
grunt.file.write("deps/node/version-" + grunt.config("node.version") + ".txt", "");
}
// task: node-win32
grunt.registerTask("node-win", "Setup Node.js for Windows", function () {
// requires node to set "nodeSrc" in config
grunt.task.requires(["node"]);
var nodeDest = grunt.config("nodeDest"),
exeFile = nodeDest;
grunt.file.mkdir("deps/node");
// copy node.exe to Brackets-node
grunt.file.copy(exeFile, "deps/node/node.exe");
nodeWriteVersion();
});
// task: node-mac
grunt.registerTask("node-mac", "Setup Node.js for Mac OSX and extract", function () {
// requires node to set "nodeSrc" in config
grunt.task.requires(["node"]);
var done = this.async(),
tarFile = grunt.config("nodeDest")[0],
tarExec,
tarName;
grunt.verbose.writeln("Extracting " + tarFile);
tarExec = exec("tar -xzf " + tarFile);
// remove downloads/, remove .tar.gz extension
tarName = tarFile.substr(tarFile.lastIndexOf("/") + 1);
tarName = tarName.substr(0, tarName.lastIndexOf(".tar.gz"));
tarExec.then(function () {
return rename(tarName, "deps/node");
}).then(function () {
// Create a copy of the "node" binary as "Brackets-node". We need one named "node"
// for npm to function properly, but we want to call the executable "Brackets-node"
// in the final binary. Due to gyp's limited nature, we can't (easily) do this rename
// as part of the build process.
return rename("deps/node/bin/node", "deps/node/bin/Brackets-node");
}).then(function () {
nodeWriteVersion();
done();
}, function (err) {
grunt.log.error(err);
done(false);
});
});
// task: node-linux
grunt.registerTask("node-linux", ["node-mac"]);
// task: node-clean
grunt.registerTask("node-clean", "Removes Node.js binaries", function () {
common.deleteFile("deps/node", { force: true });
});
// task: create-project
grunt.registerTask("create-project", "Create Xcode/VisualStudio/Makefile project", function () {
var done = this.async(),
promise,
gypCommand;
if (platform === "linux") {
gypCommand = "bash -c 'gyp/gyp --depth=.'";
} else {
gypCommand = "bash -c 'gyp/gyp appshell.gyp -I common.gypi --depth=.'";
}
grunt.log.writeln("Building project files");
// Run gyp
promise = exec(gypCommand);
if (platform === "mac") {
promise = promise.then(function () {
// FIXME port to JavaScript?
return exec("bash scripts/fix-xcode.sh");
});
} else if (platform === "win") {
promise = promise.then(function () {
// FIXME port to JavaScript?
return exec("bash scripts/fix-msvc.sh");
});
}
promise.then(function () {
done();
}, function (err) {
grunt.log.error(err);
done(false);
});
});
// task: setup
if (platform === "win") {
grunt.registerTask("setup", ["cef", "node", "node-check", "icu", "vs-crt", "create-project"]);
} else {
grunt.registerTask("setup", ["cef", "node", "node-check", "icu", "create-project"]);
}
};