Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Commit

Permalink
update shell node version to 6.3.1 (#543)
Browse files Browse the repository at this point in the history
* update node and npm versions to latest LTS

* remove npm

* fix incorrect reference

* update to latest node

* put nodeWriteVersion back

* support downloading 64-bit nodejs
  • Loading branch information
zaggino authored and ficristo committed Sep 3, 2016
1 parent 696673f commit fe347d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
12 changes: 5 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = function (grunt) {
},
"node-mac": {
"dest" : "<%= downloads %>",
"src" : "http://nodejs.org/dist/v<%= node.version %>/node-v<%= node.version %>-darwin-x86.tar.gz"
"src" : "http://nodejs.org/dist/v<%= node.version %>/node-v<%= node.version %>-darwin-x64.tar.gz"
},
/* win */
"cef-win": {
Expand All @@ -82,8 +82,9 @@ module.exports = function (grunt) {
},
"node-win": {
"dest" : "<%= downloads %>",
"src" : ["http://nodejs.org/dist/v<%= node.version %>/node.exe",
"http://nodejs.org/dist/npm/npm-<%= npm.version %>.zip"]
"src" : process.arch === "x64" ?
"http://nodejs.org/dist/v<%= node.version %>/win-x64/node.exe" :
"http://nodejs.org/dist/v<%= node.version %>/win-x86/node.exe"
}
},
"clean": {
Expand Down Expand Up @@ -234,10 +235,7 @@ module.exports = function (grunt) {
"version" : "3.2623.1397"
},
"node": {
"version" : "0.10.24"
},
"npm": {
"version" : "1.2.11"
"version" : "6.3.1"
}
});

Expand Down
15 changes: 3 additions & 12 deletions tasks/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,24 +369,15 @@ module.exports = function (grunt) {
// requires node to set "nodeSrc" in config
grunt.task.requires(["node"]);

var done = this.async(),
nodeDest = grunt.config("nodeDest"),
exeFile = nodeDest[0],
npmFile = nodeDest[1];
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");

// unzip NPM
unzip(npmFile, "deps/node").then(function () {
nodeWriteVersion();
done();
}, function (err) {
grunt.log.error(err);
done(false);
});
nodeWriteVersion();
});

// task: node-mac
Expand Down

0 comments on commit fe347d9

Please sign in to comment.