mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
make sure require.coffee is always compiled
This commit is contained in:
@@ -948,7 +948,7 @@
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "if [ -z $LOAD_RESOURCES_FROM_DIR ]; then\n rake compile-coffeescripts\nfi;";
|
||||
shellScript = "rake copy-files-to-bundle\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
11
Rakefile
11
Rakefile
@@ -48,8 +48,8 @@ task :benchmark do
|
||||
Rake::Task["run"].invoke
|
||||
end
|
||||
|
||||
desc "Compile CoffeeScripts"
|
||||
task :"compile-coffeescripts" => :"verify-prerequisites" do
|
||||
desc "Copy files to bundle and compile CoffeeScripts"
|
||||
task :"copy-files-to-bundle" => :"verify-prerequisites" do
|
||||
project_dir = ENV['PROJECT_DIR'] || '.'
|
||||
built_dir = ENV['BUILT_PRODUCTS_DIR'] || '.'
|
||||
contents_dir = ENV['CONTENTS_FOLDER_PATH'].to_s
|
||||
@@ -61,8 +61,11 @@ task :"compile-coffeescripts" => :"verify-prerequisites" do
|
||||
cp_r dir, File.join(dest, dir)
|
||||
end
|
||||
|
||||
puts contents_dir
|
||||
sh "coffee -c #{dest}/src #{dest}/vendor #{dest}/spec"
|
||||
if ENV['LOAD_RESOURCES_FROM_DIR']
|
||||
sh "coffee -c #{dest}/src/stdlib/require.coffee"
|
||||
else
|
||||
sh "coffee -c #{dest}/src #{dest}/vendor #{dest}/spec"
|
||||
end
|
||||
end
|
||||
|
||||
desc "Change webkit frameworks to use @rpath as install name"
|
||||
|
||||
Reference in New Issue
Block a user