Skip to content
Browse files

add mswin32 dist

  • Loading branch information...
1 parent 64ca839 commit 06e5c52f359363b89c6782bcb9af733613525cb9 @ddollar committed Jul 11, 2012
Showing with 16 additions and 0 deletions.
  1. +16 −0 dist/mswin32.rake
View
16 dist/mswin32.rake
@@ -0,0 +1,16 @@
+file pkg("foreman-#{version}-x86-mswin32.gem") => distribution_files do |t|
+ Bundler.with_clean_env do
+ sh "env PLATFORM=mswin32 gem build foreman.gemspec"
+ end
+ sh "mv foreman-#{version}-x86-mswin32.gem #{t.name}"
+end
+
+task "mswin32:build" => pkg("foreman-#{version}-x86-mswin32.gem")
+
+task "mswin32:clean" do
+ clean pkg("foreman-#{version}-x86-mswin32.gem")
+end
+
+task "mswin32:release" => "mswin32:build" do |t|
+ sh "gem push #{pkg("foreman-#{version}-x86-mswin32.gem")} || echo 'error'"
+end

0 comments on commit 06e5c52

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