Skip to content
This repository
Browse code

Preparing for 1.1 release. Added a release rake task.

  • Loading branch information...
commit f237ec525348a1efb7beb4eeaf95aa4e7764ba24 1 parent 8ae26eb
Eloy Durán authored September 19, 2008
3  .gitignore
... ...
@@ -1,4 +1,5 @@
1 1
 build
2 2
 .DS_Store
3 3
 Passenger.xcodeproj/*.mode1v3
4  
-Passenger.xcodeproj/*.pbxuser
  4
+Passenger.xcodeproj/*.pbxuser
  5
+pkg
4  Info.plist
@@ -17,11 +17,11 @@
17 17
 	<key>CFBundlePackageType</key>
18 18
 	<string>BNDL</string>
19 19
 	<key>CFBundleShortVersionString</key>
20  
-	<string>1.0</string>
  20
+	<string>1.1</string>
21 21
 	<key>CFBundleSignature</key>
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24  
-	<string>1.0</string>
  24
+	<string>1.1</string>
25 25
 	<key>NSMainNibFile</key>
26 26
 	<string>PassengerPref</string>
27 27
 	<key>NSPrefPaneIconFile</key>
20  Rakefile
@@ -5,6 +5,26 @@ task :run do
5 5
   sh "open build/Release/Passenger.prefPane"
6 6
 end
7 7
 
  8
+task :clean do
  9
+  sh 'rm -rf build/'
  10
+  sh 'rm -rf pkg'
  11
+end
  12
+
  13
+task :release => :clean do
  14
+  require 'osx/cocoa'
  15
+  version = OSX::NSDictionary.dictionaryWithContentsOfFile('Info.plist')['CFBundleVersion'].to_s
  16
+  name = "PassengerPane-#{version}"
  17
+  pkg_dir = "pkg/#{name}"
  18
+  
  19
+  sh "xcodebuild"
  20
+  sh "mkdir -p #{pkg_dir}"
  21
+  sh "cp -R build/Release/Passenger.prefPane #{pkg_dir}"
  22
+  %w{ LICENSE README.rdoc passenger_pane_config.rb.ports }.each do |file|
  23
+    sh "cp #{file} #{pkg_dir}"
  24
+  end
  25
+  sh "cd pkg/ && tar -czvf #{name}.tgz #{name}/"
  26
+end
  27
+
8 28
 require 'rake/testtask'
9 29
 Rake::TestTask.new do |t|
10 30
   t.libs << "test"

0 notes on commit f237ec5

Please sign in to comment.
Something went wrong with that request. Please try again.