Permalink
Browse files

Preparing for 1.1 release. Added a release rake task.

  • Loading branch information...
1 parent 8ae26eb commit f237ec525348a1efb7beb4eeaf95aa4e7764ba24 @alloy alloy committed Sep 19, 2008
Showing with 24 additions and 3 deletions.
  1. +2 −1 .gitignore
  2. +2 −2 Info.plist
  3. +20 −0 Rakefile
View
3 .gitignore
@@ -1,4 +1,5 @@
build
.DS_Store
Passenger.xcodeproj/*.mode1v3
-Passenger.xcodeproj/*.pbxuser
+Passenger.xcodeproj/*.pbxuser
+pkg
View
4 Info.plist
@@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>1.0</string>
+ <string>1.1</string>
<key>NSMainNibFile</key>
<string>PassengerPref</string>
<key>NSPrefPaneIconFile</key>
View
20 Rakefile
@@ -5,6 +5,26 @@ task :run do
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"

0 comments on commit f237ec5

Please sign in to comment.