Skip to content

Commit

Permalink
fix windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fritx committed Jun 8, 2016
1 parent 2e1d9b3 commit 48952d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> Electron Version Manager
- [x] unix support
- [ ] windows support (experimental)
- [x] windows support (experimental)
- [x] evm install
- [x] evm use
- [ ] evm ls
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var extname = require('path').extname
var dirname = require('path').dirname
var join = require('path').join
var fs = require('fs')
var os = require('os')

exports.install = install
exports.use = use
Expand Down Expand Up @@ -41,7 +42,7 @@ function use (opts, cb) {
win32: 'electron.exe'
}[opts.platform]
var dir = ['electron', 'v' + opts.version, opts.platform, opts.arch].join('-')
var dist = join(process.env.HOME, '.electron', dir, bin)
var dist = join(os.homedir(), '.electron', dir, bin)

fs.exists(dist, function (exists) {
if (!exists) {
Expand Down

0 comments on commit 48952d2

Please sign in to comment.