mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-08 16:19:17 +03:00
26 lines
642 B
Ruby
26 lines
642 B
Ruby
ENV['PATH'] = "#{ENV['PATH']}:/usr/local/bin/"
|
|
|
|
desc "Build the shit."
|
|
task :build do
|
|
project_dir = ENV['PROJECT_DIR'] || '.'
|
|
built_dir = ENV['BUILT_PRODUCTS_DIR'] || '.'
|
|
contents_dir = ENV['CONTENTS_FOLDER_PATH'].to_s
|
|
|
|
dest = File.join(built_dir, contents_dir, "Resources")
|
|
|
|
%w( src docs static vendor ).each do |dir|
|
|
rm_rf File.join(dest, dir)
|
|
cp_r dir, File.join(dest, dir)
|
|
end
|
|
|
|
Dir['src/**/*.coffee'].each do |file|
|
|
sh "coffee -c #{dest}/src"
|
|
end
|
|
end
|
|
|
|
desc "Install the app in /Applications"
|
|
task :install do
|
|
rm_rf "/Applications/Atomicity.app"
|
|
cp_r "Cocoa/build/Debug/Atomicity.app /Applications"
|
|
end
|