Permalink
Browse files

Added package command

  • Loading branch information...
thestoics committed Jan 8, 2012
1 parent b877a0f commit dae794175969209790597a6a7233b1911439d564
Showing with 16 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +15 −0 Rakefile
View
@@ -17,3 +17,4 @@ profile
_site
!Objection.xcworkspace
run
+pkg
View
@@ -35,6 +35,21 @@ namespace :artifact do
desc "Build iOS Framework"
task :ios => :clean do
system_or_exit(%Q[#{xcodebuild_executable} -project #{PROJECT_NAME}.xcodeproj -target Objection-iOS -configuration Release build], nil)
+ end
+
+ require 'rake/clean'
+ CLEAN.include("pkg")
+ CLEAN.include("build")
+
+ desc "Build package containing OS X and iOS frameworks"
+ task :package => [:clean, :osx, :ios] do
+ version = %x|/usr/libexec/PlistBuddy -c "Print :CFBundleVersion" Objection-Info.plist|.strip
+ mkdir_p "pkg"
+ cp_r "build/Release-iphoneuniversal/Objection-iOS.framework", "pkg"
+ cp_r "build/Release/Objection.framework", "pkg"
+ cd "pkg" do
+ sh "tar cvzf Objection-#{version}.tar.gz Objection-iOS.framework Objection.framework"
+ end
end
end

0 comments on commit dae7941

Please sign in to comment.