Skip to content

Commit 982ab9e

Browse files
committed
Update release script
1 parent ea7e0ca commit 982ab9e

5 files changed

Lines changed: 68 additions & 41 deletions

File tree

Build.bat

Lines changed: 0 additions & 17 deletions
This file was deleted.

Build.ps1

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
param(
2+
[Parameter(Mandatory = $False)]
3+
[string]$Configuration = "Release",
4+
[Parameter(Mandatory = $False)]
5+
[string]$Version="4.0.0",
6+
[Parameter(Mandatory = $False)]
7+
[AllowEmptyString()]
8+
[string]$VersionSuffix = $Null
9+
)
10+
11+
$OutDirectory="out/$Version"
12+
Remove-Item $OutDirectory -Recurse -Force
13+
New-Item -ItemType directory -Path $OutDirectory
14+
15+
if ($VersionSuffix -eq "")
16+
{
17+
$FullVersion="$Version"
18+
dotnet msbuild "/t:Restore" /p:Version=$Version /p:Configuration=$Configuration
19+
dotnet msbuild "/t:Pack" /p:Version=$Version /p:Configuration=$Configuration
20+
}
21+
else
22+
{
23+
$FullVersion="$Version-$VersionSuffix"
24+
dotnet msbuild "/t:Restore" /p:Version=$Version /p:VersionSuffix=$VersionSuffix /p:Configuration=$Configuration
25+
dotnet msbuild "/t:Pack" /p:Version=$Version /p:VersionSuffix=$VersionSuffix /p:Configuration=$Configuration
26+
}
27+
28+
Copy-Item src\NCrawler\bin\$Configuration\NCrawler.$FullVersion.nupkg $OutDirectory
29+
Copy-Item src\NCrawler.HtmlProcessor\bin\$Configuration\NCrawler.HtmlProcessor.$FullVersion.nupkg $OutDirectory
30+
Copy-Item src\NCrawler.EsentServices\bin\$Configuration\NCrawler.EsentServices.$FullVersion.nupkg $OutDirectory
31+
Copy-Item src\NCrawler.EntityFramework\bin\$Configuration\NCrawler.EntityFramework.$FullVersion.nupkg $OutDirectory
32+
Copy-Item src\NCrawler.iTextSharpPdfProcessor\bin\$Configuration\NCrawler.iTextSharpPdfProcessor.$FullVersion.nupkg $OutDirectory
33+
Copy-Item src\NCrawler.MP3Processor\bin\$Configuration\NCrawler.MP3Processor.$FullVersion.nupkg $OutDirectory
34+
Copy-Item src\NCrawler.SitemapProcessor\bin\$Configuration\NCrawler.SitemapProcessor.$FullVersion.nupkg $OutDirectory
35+
Copy-Item src\NCrawler.RedisServices\bin\$Configuration\NCrawler.RedisServices.$FullVersion.nupkg $OutDirectory
36+
Copy-Item src\NCrawler.FileStorageServices\bin\$Configuration\NCrawler.FileStorageServices.$FullVersion.nupkg $OutDirectory
37+
Copy-Item src\NCrawler.IFilterProcessor\bin\$Configuration\NCrawler.IFilterProcessor.$FullVersion.nupkg $OutDirectory

NCrawler.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Copyright>Copyright © Esben Carlsen 2010-2012, Andrey Kurdyumov 2014-2017</Copyright>
3+
<Copyright>Copyright © Esben Carlsen 2010-2012, Andrey Kurdyumov 2014-2018</Copyright>
44
<Authors>Esben Carlsen, Andrey Kurdyumov</Authors>
55
<Version>4.0.0</Version>
66
</PropertyGroup>

NCrawler.sln

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HundredMilesSoftware", "Hun
4040
EndProject
4141
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MSBuild", "MSBuild", "{88BAF15C-4FB3-46B3-BDD3-066962294D13}"
4242
ProjectSection(SolutionItems) = preProject
43-
Build.bat = Build.bat
43+
Build.ps1 = Build.ps1
4444
NCrawler.proj = NCrawler.proj
4545
EndProjectSection
4646
EndProject
@@ -49,39 +49,39 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Db4o", "Db4o", "{9B0CEC51-A
4949
Repository\Db4o\Db4objects.Db4o.dll = Repository\Db4o\Db4objects.Db4o.dll
5050
EndProjectSection
5151
EndProject
52-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.HtmlProcessor", "src\NCrawler.HtmlProcessor\NCrawler.HtmlProcessor.csproj", "{A8ADB9E8-359E-4CFB-97D7-59E1E705DE04}"
52+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.HtmlProcessor", "src\NCrawler.HtmlProcessor\NCrawler.HtmlProcessor.csproj", "{A8ADB9E8-359E-4CFB-97D7-59E1E705DE04}"
5353
EndProject
54-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.IFilterProcessor", "src\NCrawler.IFilterProcessor\NCrawler.IFilterProcessor.csproj", "{FC4BAAF7-5749-4149-8D3C-3DA21A129999}"
54+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.IFilterProcessor", "src\NCrawler.IFilterProcessor\NCrawler.IFilterProcessor.csproj", "{FC4BAAF7-5749-4149-8D3C-3DA21A129999}"
5555
EndProject
56-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.Demo", "src\NCrawler.Demo\NCrawler.Demo.csproj", "{3FB98863-77C5-4459-B9BF-2AF1C904323C}"
56+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.Demo", "src\NCrawler.Demo\NCrawler.Demo.csproj", "{3FB98863-77C5-4459-B9BF-2AF1C904323C}"
5757
EndProject
58-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.LanguageDetection.Google", "src\NCrawler.LanguageDetection.Google\NCrawler.LanguageDetection.Google.csproj", "{0E707ADD-8F93-4E65-BAE7-534D4C844060}"
58+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.LanguageDetection.Google", "src\NCrawler.LanguageDetection.Google\NCrawler.LanguageDetection.Google.csproj", "{0E707ADD-8F93-4E65-BAE7-534D4C844060}"
5959
EndProject
60-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.iTextSharpPdfProcessor", "src\NCrawler.iTextSharpPdfProcessor\NCrawler.iTextSharpPdfProcessor.csproj", "{1CC6DC28-0B0B-445D-8AE3-07F9823A9036}"
60+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.iTextSharpPdfProcessor", "src\NCrawler.iTextSharpPdfProcessor\NCrawler.iTextSharpPdfProcessor.csproj", "{1CC6DC28-0B0B-445D-8AE3-07F9823A9036}"
6161
EndProject
62-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.Test", "test\NCrawler.Test\NCrawler.Test.csproj", "{E565C692-2122-4B7D-B467-4B965BFD72B1}"
62+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.Test", "test\NCrawler.Test\NCrawler.Test.csproj", "{E565C692-2122-4B7D-B467-4B965BFD72B1}"
6363
EndProject
64-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.IsolatedStorageServices", "src\NCrawler.IsolatedStorageServices\NCrawler.IsolatedStorageServices.csproj", "{791A3998-A352-4DE8-88C7-6EE5C6FF1668}"
64+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.IsolatedStorageServices", "src\NCrawler.IsolatedStorageServices\NCrawler.IsolatedStorageServices.csproj", "{791A3998-A352-4DE8-88C7-6EE5C6FF1668}"
6565
EndProject
66-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.MP3Processor", "src\NCrawler.MP3Processor\NCrawler.MP3Processor.csproj", "{8DBF9F2F-A8BD-45B1-8750-C7CB63611425}"
66+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.MP3Processor", "src\NCrawler.MP3Processor\NCrawler.MP3Processor.csproj", "{8DBF9F2F-A8BD-45B1-8750-C7CB63611425}"
6767
EndProject
68-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.Console", "src\NCrawler.Console\NCrawler.Console.csproj", "{5BC126AF-4E49-4DEA-B013-E05CBC2C67F4}"
68+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.Console", "src\NCrawler.Console\NCrawler.Console.csproj", "{5BC126AF-4E49-4DEA-B013-E05CBC2C67F4}"
6969
EndProject
70-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.FileStorageServices", "src\NCrawler.FileStorageServices\NCrawler.FileStorageServices.csproj", "{944F9961-7B7D-4384-9946-705237E7E195}"
70+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.FileStorageServices", "src\NCrawler.FileStorageServices\NCrawler.FileStorageServices.csproj", "{944F9961-7B7D-4384-9946-705237E7E195}"
7171
EndProject
7272
Project("{00D1A9C2-B5F0-4AF3-8072-F6C62B433612}") = "NCrawler.DbServices.Db", "src\NCrawler.DbServices.Db\NCrawler.DbServices.Db.sqlproj", "{6D5575EE-321F-4069-BFC0-90DCBA96BCDE}"
7373
EndProject
74-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.EsentServices", "src\NCrawler.EsentServices\NCrawler.EsentServices.csproj", "{D82B1354-F267-4C35-9FC0-6910A5C44304}"
74+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.EsentServices", "src\NCrawler.EsentServices\NCrawler.EsentServices.csproj", "{D82B1354-F267-4C35-9FC0-6910A5C44304}"
7575
EndProject
76-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.SitemapProcessor", "src\NCrawler.SitemapProcessor\NCrawler.SitemapProcessor.csproj", "{4C550C30-9CCD-4CAB-8E9C-C1A4D6619953}"
76+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.SitemapProcessor", "src\NCrawler.SitemapProcessor\NCrawler.SitemapProcessor.csproj", "{4C550C30-9CCD-4CAB-8E9C-C1A4D6619953}"
7777
EndProject
78-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NGet", "src\NGet\NGet.csproj", "{D80AAC56-C054-46C0-B14D-80F61D2D9B56}"
78+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NGet", "src\NGet\NGet.csproj", "{D80AAC56-C054-46C0-B14D-80F61D2D9B56}"
7979
EndProject
80-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.GeckoProcessor", "src\NCrawler.GeckoProcessor\NCrawler.GeckoProcessor.csproj", "{79CE8CFF-51B6-4706-9958-DAAA4160A51A}"
80+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.GeckoProcessor", "src\NCrawler.GeckoProcessor\NCrawler.GeckoProcessor.csproj", "{79CE8CFF-51B6-4706-9958-DAAA4160A51A}"
8181
EndProject
8282
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.TridentProcessor", "src\NCrawler.TridentProcessor\NCrawler.TridentProcessor.csproj", "{D1DAC206-2908-4192-8850-5EEEE7700397}"
8383
EndProject
84-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.RedisServices", "src\NCrawler.RedisServices\NCrawler.RedisServices.csproj", "{7F13769B-32A8-440B-B79D-FF027B2090FE}"
84+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.RedisServices", "src\NCrawler.RedisServices\NCrawler.RedisServices.csproj", "{7F13769B-32A8-440B-B79D-FF027B2090FE}"
8585
EndProject
8686
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Nuget", "Nuget", "{AC54A268-3444-4235-B78E-AE53B5F74F01}"
8787
ProjectSection(SolutionItems) = preProject
@@ -99,23 +99,23 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{34E46D
9999
.nuget\NuGet.targets = .nuget\NuGet.targets
100100
EndProjectSection
101101
EndProject
102-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.EntityFramework", "src\NCrawler.EntityFramework\NCrawler.EntityFramework.csproj", "{49322A63-B87C-43A1-B529-F318AD6706C8}"
102+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.EntityFramework", "src\NCrawler.EntityFramework\NCrawler.EntityFramework.csproj", "{49322A63-B87C-43A1-B529-F318AD6706C8}"
103103
EndProject
104-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler", "src\NCrawler\NCrawler.csproj", "{411BF568-EA0D-45A5-88FA-0AD9E01EF23C}"
104+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler", "src\NCrawler\NCrawler.csproj", "{411BF568-EA0D-45A5-88FA-0AD9E01EF23C}"
105105
EndProject
106106
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{379965F7-1C4E-46F8-B0E5-81FFD3B261E9}"
107107
EndProject
108108
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{0F2375C1-4D4F-4C37-B5B1-0DDA93C7B451}"
109109
EndProject
110-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.EntityFramework.Tests", "test\NCrawler.EntityFramework.Tests\NCrawler.EntityFramework.Tests.csproj", "{1CC77BE6-2187-4C7E-90ED-E85105B5E7D1}"
110+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.EntityFramework.Tests", "test\NCrawler.EntityFramework.Tests\NCrawler.EntityFramework.Tests.csproj", "{1CC77BE6-2187-4C7E-90ED-E85105B5E7D1}"
111111
EndProject
112112
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.Shared.Tests", "test\NCrawler.Shared.Tests\NCrawler.Shared.Tests.csproj", "{AEC85E35-6201-4888-966D-56C9193358CE}"
113113
EndProject
114-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.EsentServices.Tests", "test\NCrawler.EsentServices.Tests\NCrawler.EsentServices.Tests.csproj", "{55C9A01D-D2C8-4CB9-9E98-F3D2E1D37465}"
114+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.EsentServices.Tests", "test\NCrawler.EsentServices.Tests\NCrawler.EsentServices.Tests.csproj", "{55C9A01D-D2C8-4CB9-9E98-F3D2E1D37465}"
115115
EndProject
116-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.IsolatedStorageServices.Tests", "test\NCrawler.IsolatedStorageServices.Tests\NCrawler.IsolatedStorageServices.Tests.csproj", "{F81FF13A-E83F-4A6C-8069-5832FA790493}"
116+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.IsolatedStorageServices.Tests", "test\NCrawler.IsolatedStorageServices.Tests\NCrawler.IsolatedStorageServices.Tests.csproj", "{F81FF13A-E83F-4A6C-8069-5832FA790493}"
117117
EndProject
118-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NCrawler.FileStorageServices.Tests", "test\NCrawler.FileStorageServices.Tests\NCrawler.FileStorageServices.Tests.csproj", "{A76BD5B4-66D0-4BA7-80ED-086FA93411CB}"
118+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NCrawler.FileStorageServices.Tests", "test\NCrawler.FileStorageServices.Tests\NCrawler.FileStorageServices.Tests.csproj", "{A76BD5B4-66D0-4BA7-80ED-086FA93411CB}"
119119
EndProject
120120
Global
121121
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -418,4 +418,7 @@ Global
418418
{F81FF13A-E83F-4A6C-8069-5832FA790493} = {0F2375C1-4D4F-4C37-B5B1-0DDA93C7B451}
419419
{A76BD5B4-66D0-4BA7-80ED-086FA93411CB} = {0F2375C1-4D4F-4C37-B5B1-0DDA93C7B451}
420420
EndGlobalSection
421+
GlobalSection(ExtensibilityGlobals) = postSolution
422+
SolutionGuid = {85589A19-9FC3-4763-A5A3-C87B818B00B2}
423+
EndGlobalSection
421424
EndGlobal

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ Easy to add pipeline steps to extract, use and alter information.
1111

1212
Create debug packages
1313

14-
Build.bat build002
14+
.\Build.ps1 -VersionSuffix build002
15+
16+
Create release packages
17+
18+
.\Build.ps1

0 commit comments

Comments
 (0)