forked from Fingertips/passengerpane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
40 lines (34 loc) · 1.02 KB
/
Rakefile
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