Check platform not env

This commit is contained in:
Kevin Sawicki 2014-07-23 20:02:54 -07:00
parent 00275d95ec
commit 5d00ca8bb6

View File

@ -41,7 +41,7 @@ module.exports = (grunt) ->
buildDir = grunt.option('build-dir') ? path.join(tmpDir, 'atom-build')
installDir = grunt.option('install-dir')
home = if process.env is 'win32' then process.env.USERPROFILE else process.env.HOME
home = if process.platform is 'win32' then process.env.USERPROFILE else process.env.HOME
atomShellDownloadDir = path.join(home, '.atom', 'atom-shell')
symbolsDir = path.join(buildDir, 'Atom.breakpad.syms')