From 5d67b632539e30f0f595cd222ea91839a332313b Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Thu, 7 Jun 2012 10:51:37 -0700 Subject: [PATCH] always copy static folder to app bundle --- Rakefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index fc3becbb2..23f50950f 100644 --- a/Rakefile +++ b/Rakefile @@ -56,8 +56,10 @@ task :"copy-files-to-bundle" => :"verify-prerequisites" do dest = File.join(built_dir, contents_dir, "Resources") - rm_rf File.join(dest, "index.html") - cp "index.html", File.join(dest, "index.html") + %w(static index.html).each do |dir| + rm_rf File.join(dest, dir) + cp_r dir, File.join(dest, dir) + end sh "coffee -c -o #{dest}/src/stdlib src/stdlib/require.coffee" unless ENV['LOAD_RESOURCES_FROM_DIR']