-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
49 lines (40 loc) · 1.44 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# encoding: utf-8
require 'albacore'
require 'rake'
require 'rubygems'
VERSION = "0.3.0.4"
# http://jasonseifer.com/2010/04/06/rake-tutorial
task :default => [:compile, :package]
Albacore.configure do |config|
config.log_level = :verbose
config.msbuild.use :net35
desc "Compiles and builds installer project"
exec :clean do |cmd|
cmd.command = "C:/Program Files/Microsoft Visual Studio 10.0/Common7/IDE/devenv.com"
cmd.parameters = "src/FalconerDevelopment.MantisConnect.sln /Clean"
end
desc "Compiles installer project"
exec :compile => [:clean, :assemblyinfo] do |cmd|
cmd.command = "C:/Program Files/Microsoft Visual Studio 10.0/Common7/IDE/devenv.com"
cmd.parameters = 'src/FalconerDevelopment.MantisConnect.sln /Build "Release|Any CPU"'
end
desc "Run a sample assembly info generator"
assemblyinfo :assemblyinfo do |asm|
asm.version = VERSION
asm.file_version = VERSION
asm.company_name = "Falconer Development LLC"
asm.product_name = "FalconerDevelopment Mantis Connect"
asm.copyright = "Copyright Falconer Development LLC 2012"
asm.output_file = "src/ProductAssemblyInfo.cs"
end
desc "Package build output"
zip :package do |zip|
zip.directories_to_zip "./build/Release"
zip.output_file = "FalconerDevelopment.MantisConnect-#{VERSION}.zip"
end
desc "Clean any extra build artifacts before building"
exec :clean_release do |cmd|
cmd.command = "del"
cmd.parameters = "/Q /F ./build/Release"
end
end