1 Star 0 Fork 0

RubyGems / wixgem

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
rakefile.rb 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
kevin-marshall 提交于 2016-02-10 10:05 . 'all'
require 'dev'
require 'rbconfig'
require_relative 'lib/admin.rb'
require 'execute'
CLEAN.include('example/*.wxs','tests/test/**','tests/wixgem_install*.*', 'tests/rakefile.rb', 'tests/Gemfile')
task :commit => [:add]
task :setup do
FileUtils.chmod('a-w', 'tests/test_files/ReadOnly.txt')
raise 'Wixtoolset must be installed' if(ENV['WIX'].nil?)
end
task :add => [:clean]
task :pre_build do
Dir.glob('**/*.wxs').each { |f| File.delete(f) } # Default build task tries to build these
end
task :build => [:pre_build] do
Dir.chdir('example') do
cmd = Execute.new("#{RbConfig::CONFIG['bindir']}/rake.bat")
cmd.execute
end
Dir.chdir('tests/CustomActionExe') do
cmd = Execute.new('ocra hello_world.rb', {echo_output: false})
cmd.execute
end
end
task :test => [:setup] do
Dir.chdir('tests') do
MSBuild.get_build_commands 'COMObject/COMObject.sln'
cmd = Execute.new("#{RbConfig::CONFIG['bindir']}/ruby.exe all_tests.rb", {echo_output: false})
cmd.execute
end
end
unless(admin?)
puts '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
puts 'No user interaction requred when running rakefile as an administrator '
puts '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!'
end
# Yard command line for realtime feed back of Readme.md modifications
# yard server --reload
Ruby
1
https://gitee.com/rubygems/wixgem.git
git@gitee.com:rubygems/wixgem.git
rubygems
wixgem
wixgem
master

搜索帮助