]> khamidou — GitHub mirrors - electron.git/commitdiff
Add process.noAsar to turn off asar support
authorCheng Zhao <zcbenz@gmail.com>
Tue, 1 Dec 2015 05:09:37 +0000 (13:09 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 1 Dec 2015 05:09:37 +0000 (13:09 +0800)
atom/common/lib/asar.coffee

index f7eeceb3f3144bd7d82651b42b73e0b6da0bc406..2373385f75d4564959fa501e8fa0eb6f56839b4f 100644 (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