Skip to content

Commit a97b900

Browse files
committed
Update build script to create release artifact
1 parent 5488787 commit a97b900

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

build.cmd

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
@echo off
22
setlocal EnableDelayedExpansion
33

4-
set _version=1.8.0.0
4+
set _version=1.8.0
5+
set _suffix=alpha01
6+
:: goIT Solutions, s.r.o. certificate
7+
set _thumbprint=ac6dbffb1bf8b62281deb8641023a66cddc5db57
58

69
mkdir out
710

@@ -10,18 +13,23 @@ xcopy /s /e /y Examples out\Examples\
1013
xcopy /s /e /y Tutorials out\Tutorials\
1114
xcopy /s /e /y Source out\Source\
1215

13-
nuget restore Source\NetOffice.sln
14-
msbuild Source\NetOffice.sln /t:Build /p:Configuration=Release /v:m
16+
msbuild Source\NetOffice.sln /t:Restore;Build;Pack /p:IncludeSource=true /p:Configuration=Release /p:VersionSuffix="%_suffix%" /p:PackageOutputPath="%CD%\out" /v:m
17+
nuget.exe sign "out\*.nupkg" -CertificateFingerprint "%_thumbprint%" -HashAlgorithm SHA256 -Timestamper http://timestamp.comodoca.com -TimestampHashAlgorithm SHA256 -Overwrite -OutputDirectory out -NonInteractive -ForceEnglishOutput
1518

1619
del /s /q Source\ClientApplication\bin\Release\ClientApplication.*
1720
del /s /q Source\ClientApplication\bin\Release\stdole.dll
1821

1922
xcopy /y Source\ClientApplication\bin\Release "out\Assemblies\Any CPU\"
2023

24+
rem del /s /q Source\ClientApplication\bin\Release\ClientApplication.*
25+
rem del /s /q Source\ClientApplication\bin\Release\*\stdole.dll
26+
27+
xcopy /y /s /i /e Source\ClientApplication\bin\Release "out\Assemblies\"
28+
2129
xcopy /y "Breaking Changes.txt" out\
2230
xcopy /y BugFixes.txt out\
2331
xcopy /y ChangeLog.txt out\
2432

2533
pushd out
26-
7z a -tzip ..\NetOffice_v%_version%.zip .
34+
7z a -tzip ..\NetOffice_v%_version%-%_suffix%.zip .
2735
popd

0 commit comments

Comments
 (0)