forked from jimgraham/NetSparkle
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathNetSparklePackNuget.cmd
56 lines (46 loc) · 1.41 KB
/
NetSparklePackNuget.cmd
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
@echo off
echo Cleanup NuGet environment
rmdir /S /Q Nuget\core\lib
rmdir /S /Q Nuget\core\content
rmdir /S /Q Nuget\core\tools
del \q Nuget\core\*.nupkg
rmdir /S /Q Nuget\tools\lib
rmdir /S /Q Nuget\tools\content
rmdir /S /Q Nuget\tools\tools
del \q Nuget\tools\*.nupkg
echo Create NuGet tree for core
mkdir Nuget\core\lib
mkdir Nuget\core\content
mkdir Nuget\core\tools
echo Create NuGet tree for tools
mkdir Nuget\tools\lib
mkdir Nuget\tools\content
mkdir Nuget\tools\content\Extras
mkdir Nuget\tools\tools
echo Copy Core Buildoutput to Nuget dir
xcopy /s /q NetSparkle\Release\lib\net40-full\* Nuget\core\lib\net40-full\
del /q Nuget\core\lib\net40-full\*.pdb
echo Copy Tools Buildoutput to Nuget dir
xcopy /s /q /y NetSparkleChecker\bin\Release\* Nuget\tools\tools\
xcopy /s /q /y NetSparkleDSAHelper\bin\Release Nuget\tools\tools\
xcopy /s /q /y Extras\* Nuget\tools\content\Extras\
del /q Nuget\tools\tools\*.config
del /q Nuget\tools\tools\*.pdb
del /q Nuget\tools\tools\*.xml
del /q Nuget\tools\tools\*.manifest
del /q Nuget\tools\tools\*.vshost.*
echo Moving to release directory
cd Nuget
echo Packing core nuget package
cd core
..\nuget pack NetSparkle.nuspec -Version %1
cd ..
echo Packing tools nuget package
cd tools
..\nuget pack NetSparkle.Tools.nuspec -Version %1
cd ..
echo Pushing nuget package
rem nuget Push core\NetSparkle.%1.nupkg
rem nuget Push tools\NetSparkle.Tools.%1.nupkg
echo Leaving directories
cd ..