diff --git a/package.json b/package.json index fa92885e8..a1c124ea7 100644 --- a/package.json +++ b/package.json @@ -119,8 +119,7 @@ "json-front-matter": "~0.1.3", "grunt-shell": "~0.3.1", "jasmine-node": "git://github.com/kevinsawicki/jasmine-node.git#short-stacks", - "request": "~2.27.0", - "adm-zip": "~0.4.3" + "request": "~2.27.0" }, "private": true, "scripts": { diff --git a/tasks/update-atom-shell-task.coffee b/tasks/update-atom-shell-task.coffee index f614e0aee..3a23df177 100644 --- a/tasks/update-atom-shell-task.coffee +++ b/tasks/update-atom-shell-task.coffee @@ -1,7 +1,6 @@ fs = require 'fs' path = require 'path' -AdmZip = require 'adm-zip' request = require 'request' module.exports = (grunt) -> @@ -44,14 +43,10 @@ module.exports = (grunt) -> grunt.log.writeln('Unzipping atom-shell') directoryPath = path.dirname(zipPath) - try - zip = new AdmZip(zipPath) - zip.extractAllTo(directoryPath, true) + spawn {cmd: 'unzip', args: [zipPath, '-d', directoryPath]}, (error) -> rm(zipPath) - callback() - catch error callback(error) - + rebuildNativeModules = (previousVersion, callback) -> newVersion = getAtomShellVersion() if newVersion and newVersion isnt previousVersion