mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Spawn unzip command directly
adm-zip does not support retaining the executable flag and node-unzip fails for files the size of atom-shell.zip
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user