Add process.noAsar to turn off asar support

This commit is contained in:
Cheng Zhao 2015-12-01 13:09:37 +08:00
parent 757b644909
commit e3ec1fe8ab

View file

@ -18,6 +18,7 @@ process.on 'exit', ->
# Separate asar package's path from full path.
splitPath = (p) ->
return [false] if process.noAsar # shortcut to disable asar.
return [false] if typeof p isnt 'string'
return [true, p, ''] if p.substr(-5) is '.asar'
p = path.normalize p