Preserve symlinks during rake install

This prevents resources within Atom.framework from getting duplicated
within the bundle.

This shrinks a `rake install`-ed Atom.app from 124MB to 82MB.
This commit is contained in:
Adam Roben
2013-03-01 16:12:02 -05:00
parent a3c48df25b
commit 225aca016b

View File

@@ -42,7 +42,7 @@ task :install => [:clean, :build] do
# Install Atom.app
dest_path = "/Applications/#{File.basename(path)}"
`rm -rf #{dest_path}`
`cp -r #{path} #{File.expand_path(dest_path)}`
`cp -a #{path} #{File.expand_path(dest_path)}`
# Install atom cli
if File.directory?("/opt/boxen")