mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
Add apm command stub
This commit is contained in:
@@ -73,6 +73,14 @@ updatePath = (callback) ->
|
||||
"""
|
||||
fs.writeFile(atomCommandPath, atomCommand, callback)
|
||||
|
||||
apmCommandPath = path.join(binFolder, 'apm.cmd')
|
||||
relativeApmPath = path.relative(binFolder, path.join(process.resourcesPath, 'app', 'apm', 'node_modules', 'atom-package-manager', 'bin', 'atom.cmd'))
|
||||
apmCommand = """
|
||||
@echo off
|
||||
"%~dp0\\#{relativeApmPath}" %*
|
||||
"""
|
||||
fs.writeFile(apmCommandPath, apmCommand, callback)
|
||||
|
||||
getPath = (callback) ->
|
||||
spawnReg ['query', environmentKeyPath, '/v', 'Path'], (error, stdout) ->
|
||||
return callback(error) if error?
|
||||
|
||||
Reference in New Issue
Block a user