Merge pull request #2059 from bradgearon/master

append .cmd to apm in package-manager.coffee if platform is win32
This commit is contained in:
Corey Johnson
2014-05-08 15:14:36 -07:00

View File

@@ -43,7 +43,10 @@ class PackageManager
# Public: Get the path to the apm command
getApmPath: ->
@apmPath ?= path.resolve(__dirname, '..', 'apm', 'node_modules', 'atom-package-manager', 'bin', 'apm')
commandName = 'apm'
if process.platform == 'win32'
commandName += '.cmd'
@apmPath ?= path.resolve(__dirname, '..', 'apm', 'node_modules', 'atom-package-manager', 'bin', commandName)
# Public: Get the paths being used to look for packages.
#