bump(asar): 0.10, use ordering feature we PR'd [TEST CI]

This commit is contained in:
Ben Gotow 2016-03-08 15:21:28 -08:00
parent 8e6d4d9a8f
commit 9af46bd834
3 changed files with 6046 additions and 2 deletions

View file

@ -6,7 +6,7 @@
"url": "https://github.com/nylas/edgehill.git"
},
"dependencies": {
"asar": "^0.8",
"asar": "^0.10",
"async": "~0.2.9",
"babel-eslint": "^4.1.3",
"bluebird": "^3.0",

File diff suppressed because it is too large Load diff

View file

@ -17,13 +17,15 @@ module.exports = (grunt) ->
'**/node_modules/windows-shortcuts/**'
]
unpack = "{#{unpack.join(',')}}"
ordering = path.resolve(__dirname, '..', 'resources', 'asar-ordering-hint.txt')
appDir = grunt.config.get('nylasGruntConfig.appDir')
unless fs.existsSync(appDir)
grunt.log.error 'The app has to be built before generating asar archive.'
return done(false)
asar.createPackageWithOptions appDir, path.resolve(appDir, '..', 'app.asar'), {unpack}, (err) ->
asar.createPackageWithOptions appDir, path.resolve(appDir, '..', 'app.asar'), {unpack, ordering}, (err) ->
return done(err) if err?
rm appDir