mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Install cli to /opt/boxen if it exists
This commit is contained in:
7
Rakefile
7
Rakefile
@@ -40,7 +40,12 @@ task :install => [:clean, :build] do
|
||||
`cp -r #{path} #{File.expand_path(dest_path)}`
|
||||
|
||||
# Install atom cli
|
||||
cli_path = "/opt/github/bin/atom"
|
||||
if File.directory?("/opt/boxen")
|
||||
cli_path = "/opt/boxen/bin/atom"
|
||||
else
|
||||
cli_path = "/opt/github/bin/atom"
|
||||
end
|
||||
|
||||
FileUtils.cp("#{ATOM_SRC_PATH}/atom.sh", cli_path)
|
||||
FileUtils.chmod(0755, cli_path)
|
||||
|
||||
|
||||
@@ -40,7 +40,11 @@ window.setUpEnvironment = ->
|
||||
|
||||
# This method is only called when opening a real application window
|
||||
window.startup = ->
|
||||
installAtomCommand('/opt/github/bin/atom')
|
||||
if fs.isDirectory('/opt/boxen')
|
||||
installAtomCommand('/opt/boxen/bin/atom')
|
||||
else
|
||||
installAtomCommand('/opt/github/bin/atom')
|
||||
|
||||
handleWindowEvents()
|
||||
config.load()
|
||||
atom.loadTextPackage()
|
||||
|
||||
Reference in New Issue
Block a user