Skip to content

Commit

Permalink
src: Add system-wide Windows default install path
Browse files Browse the repository at this point in the history
This is the default path used when the user installs system-wide,
rather than installing per-user.

Co-authored-by: confused_techie <[email protected]>
  • Loading branch information
DeeDeeG and confused-Techie authored Jan 5, 2023
1 parent ca316fb commit 1c3ce67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/apm.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ module.exports =
return process.nextTick -> callback(asarPath)
when 'win32'
asarPath = "/Users/#{process.env.USERNAME}/AppData/Local/Programs/pulsar/resources/app.asar"
unless fs.existsSync(asarPath)
asarPath = "/Program Files/Pulsar/resources/app.asar"
return process.nextTick -> callback(asarPath)
else
return process.nextTick -> callback('')
Expand Down

0 comments on commit 1c3ce67

Please sign in to comment.