mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-26 10:01:57 +08:00
bump(asar): 0.10, use ordering feature we PR'd [TEST CI]
This commit is contained in:
parent
8e6d4d9a8f
commit
9af46bd834
3 changed files with 6046 additions and 2 deletions
|
@ -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",
|
||||
|
|
6042
build/resources/asar-ordering-hint.txt
Normal file
6042
build/resources/asar-ordering-hint.txt
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue