forked from haf/DotNetZip.Semverd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
60 lines (49 loc) · 1.95 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
50
51
52
53
54
55
56
57
58
59
60
require 'bundler/setup'
require 'albacore'
require 'albacore/tasks/versionizer'
require 'albacore/ext/teamcity'
Albacore::Tasks::Versionizer.new :versioning
nugets_restore :restore do |p|
p.out = 'packages'
p.exe = 'buildsupport/NuGet.exe'
end
desc "Perform full build"
task :build => [:versioning, :restore, :asmver, :build_quick]
desc 'generate SolutionVersion.cs'
asmver :asmver do |a|
ver = ENV['FORMAL_VERSION']
a.file_path = 'src/SolutionInfo.cs'
a.namespace = '' # empty for C# projects
a.attributes \
assembly_version: ver,
assembly_file_version: ver,
assembly_informational_version: ENV['BUILD_VERSION']
end
build :build_quick do |b|
b.file = 'src/DotNetZip.sln'
b.prop 'Configuration', 'Release'
end
directory 'build/pkg'
desc "package nugets"
nugets_pack :create_nugets => ['build/pkg', :versioning, :build] do |p|
p.files = %w[src/Zip/Zip\ DLL.csproj]
p.out = 'build/pkg'
p.exe = 'buildsupport/NuGet.exe'
p.configuration = 'Release'
p.target = 'net20'
p.with_metadata do |m|
m.id = 'DotNetZip'
m.version = ENV['NUGET_VERSION']
# of the nuget at least
m.authors = 'Henrik/Dino Chisa'
m.description = 'A fork of the DotNetZip project without signing with a solution that compiles cleanly. This project aims to follow semver to avoid versioning conflicts. DotNetZip is a FAST, FREE class library and toolset for manipulating zip files. Use VB, C# or any .NET language to easily create, extract, or update zip files.'
m.summary = 'A library for dealing with zip, bzip and zlib from .Net'
m.language = 'en-GB'
m.copyright = 'Dino Chiesa'
m.release_notes = "Full version: #{ENV['BUILD_VERSION']}."
m.license_url = "https://raw.githubusercontent.com/haf/DotNetZip.Semverd/master/LICENSE"
m.project_url = "https://github.com/haf/DotNetZip.Semverd"
end
p.no_project_dependencies
end
task :default => :create_nugets