Add process.noAsar to turn off asar support
This commit is contained in:
parent
757b644909
commit
e3ec1fe8ab
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue