From 20c7f298a9271f48db574366b94b2f90f31bb362 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 28 Oct 2013 11:39:48 -0700 Subject: [PATCH] Install to program files on windows --- Gruntfile.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 056c2aa3d..acdee187d 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -8,14 +8,15 @@ _ = require 'underscore-plus' packageJson = require './package.json' module.exports = (grunt) -> - appName = 'Atom.app' + appName = if process.platform is 'win32' then 'Atom' else 'Atom.app' [major, minor, patch] = packageJson.version.split('.') tmpDir = if process.platform is 'win32' then os.tmpdir() else '/tmp' buildDir = grunt.option('build-dir') ? path.join(tmpDir, 'atom-build') shellAppDir = path.join(buildDir, appName) contentsDir = path.join(shellAppDir, 'Contents') appDir = path.join(contentsDir, 'Resources', 'app') - installDir = path.join('/Applications', appName) + installRoot = if process.platform is 'win32' then process.env.ProgramFiles else '/Applications' + installDir = path.join(installRoot, appName) coffeeConfig = options: