mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Fix error when running apm in packages
This commit is contained in:
@@ -134,7 +134,7 @@ class PackageManager
|
||||
|
||||
commandName = 'apm'
|
||||
commandName += '.cmd' if process.platform is 'win32'
|
||||
apmRoot = path.resolve(__dirname, '..', '..', 'apm')
|
||||
apmRoot = path.join(process.resourcesPath, 'apm')
|
||||
@apmPath = path.join(apmRoot, 'bin', commandName)
|
||||
unless fs.isFileSync(@apmPath)
|
||||
@apmPath = path.join(apmRoot, 'node_modules', 'atom-package-manager', 'bin', commandName)
|
||||
|
||||
Reference in New Issue
Block a user