From 225aca016b78bbb96b026eda00707cd944237c86 Mon Sep 17 00:00:00 2001 From: Adam Roben Date: Fri, 1 Mar 2013 16:12:02 -0500 Subject: [PATCH] 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. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 2b846e966..86d9f979b 100644 --- a/Rakefile +++ b/Rakefile @@ -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")