mirror of
https://github.com/electron/electron.git
synced 2026-01-24 06:48:15 -05:00
Add process.noAsar to turn off asar support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user