lib/tasks/publish.rb in dev-2.0.174 vs lib/tasks/publish.rb in dev-2.0.175
- old
+ new
@@ -20,12 +20,12 @@
add "gem push #{Gemspec.gemfile(gemspec_file)}" if !Gemspec.published? gemspec_file
}
end
end
end
- Dir.glob('**/*.nupkg').each{|nupkg|
- dest="#{Environment.dev_root}/publish/#{File.basename(nupkg)}"
+ Dir.glob('**/*.{nupkg,msi}').each{|publish_file|
+ dest="#{Environment.dev_root}/publish/#{File.basename(publish_file)}"
FileUtils.mkdir_p("#{Environment.dev_root}/publish") if !File.exists?("#{Environment.dev_root}/publish")
- add "<%FileUtils.cp('#{nupkg}','#{dest}')%>" if(!File.exists?(dest))
+ add "<%FileUtils.cp('#{publish_file}','#{dest}')%>" if(!File.exists?(dest))
}
end
end
\ No newline at end of file