Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 40 lines (34 sloc) 1.049 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
task :default => :run

task :run do
  sh "xcodebuild"
  sh "open build/Release/Passenger.prefPane"
end

task :clean do
  sh 'rm -rf build/'
  sh 'rm -rf pkg'
end

task :release => :clean do
  require 'osx/cocoa'
  version = OSX::NSDictionary.dictionaryWithContentsOfFile('Info.plist')['CFBundleVersion'].to_s
  name = "PassengerPane-#{version}"
  pkg_dir = "pkg/#{name}"
  
  sh "xcodebuild"
  sh "mkdir -p #{pkg_dir}"
  sh "cp -R build/Release/Passenger.prefPane #{pkg_dir}"
  %w{ LICENSE README.rdoc passenger_pane_config.rb.ports }.each do |file|
    sh "cp #{file} #{pkg_dir}"
  end
  sh "cd pkg/ && tar -czvf #{name}.tgz #{name}/"
end

require 'rake/testtask'
Rake::TestTask.new do |t|
  t.libs << "test"
  t.test_files = FileList['test/*_test.rb']
  t.verbose = nil
  t.options = '-rs'
end

desc "Generate Security.framework BridgeSupport file"
task :bridgesupport do
  #sh "gen_bridge_metadata -f Security -e Security.BridgeSupport-exceptions.xml -o Security.bridgesupport"
  sh "gen_bridge_metadata -f Security -o Security.bridgesupport"
end
Something went wrong with that request. Please try again.