-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
27 lines (22 loc) · 1.21 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#necessary for minitest tests
require 'rake/testtask'
#################TASKS#######################
#to execute minitest tests with `rake test`
Rake::TestTask.new do |t|
#search recursively under the folder test for files called test*. You may have to create the folder manually.
t.pattern = 'test/**/test*.rb'
end
desc 'to generate RDoc documentation'
task :rdoc do
system('rdoc --all --tab-width=1 --force-output --main="ReadMe.md" --exclude="bin" --exclude="data" --exclude="ext" --exclude="share" --exclude="doc" --exclude="test" --exclude="cocot.gemspec" --exclude="Gemfile" --exclude="Gemfile.lock" --exclude="Rakefile"')
end
desc 'ocra --no-lzma'
task :ocra_no_lzma, :version do |t, args|
args.with_defaults(:version => '')
system("ocra --windows --chdir-first --no-lzma --icon './data/icon.ico' --output 'Weightless Player#{args[:version].!=('') ? " #{args[:version]}" : ''}.exe' './bin/youtube_list' './lib/**/*' './data/*'")
end
desc 'ocra'
task :ocra, :version do |t, args|
args.with_defaults(:version => '')
system("ocra --windows --chdir-first --icon './data/icon.ico' --output 'Weightless Player#{args[:version].!=('') ? " #{args[:version]}" : ''}.exe' './bin/youtube_list' './lib/**/*' './data/*'")
end