프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / MarkusAutoUpdate / NetSparklePackNuget.cmd @ e7194723

이력 | 보기 | 이력해설 | 다운로드 (1.65 KB)

1
@echo off
2

    
3
if "%~1"=="" (
4
	echo Error: A version number is required
5
	echo Usage: "NetSparklePackNuget.cmd [VersionNumber]"
6
	exit
7
)
8

    
9
echo Cleanup NuGet environment
10
rmdir /S /Q nuget\core\lib
11
rmdir /S /Q nuget\core\content
12
rmdir /S /Q nuget\core\tools
13
del \q nuget\core\*.nupkg
14
rmdir /S /Q nuget\tools\lib
15
rmdir /S /Q nuget\tools\content
16
rmdir /S /Q nuget\tools\tools
17
del \q nuget\tools\*.nupkg
18

    
19
echo Create NuGet tree for core
20
mkdir nuget\core\lib
21
mkdir nuget\core\content
22
mkdir nuget\core\tools
23

    
24
echo Create NuGet tree for tools
25
mkdir nuget\tools\lib
26
mkdir nuget\tools\content
27
mkdir nuget\tools\content\Extras
28
mkdir nuget\tools\tools
29

    
30
echo Copy Core Buildoutput to Nuget dir
31
xcopy /s /q bin\Release\NetSparkle\* nuget\core\lib\net45\
32
del /q nuget\core\lib\net45\*.pdb
33

    
34
echo Copy Tools Buildoutput to Nuget dir
35
xcopy /s /q /y bin\Release\NetSparkleChecker\* nuget\tools\tools\
36
xcopy /s /q /y bin\Release\DSAHelper\* nuget\tools\tools\
37
xcopy /s /q /y bin\Release\NetSparkleGenerator\* nuget\tools\tools\
38
xcopy /s /q /y Extras\* nuget\tools\content\Extras\
39
del /q nuget\tools\tools\*.config
40
del /q nuget\tools\tools\*.pdb
41
del /q nuget\tools\tools\*.xml
42
del /q nuget\tools\tools\*.manifest
43
del /q nuget\tools\tools\*.vshost.*
44

    
45
echo Moving to release directory
46
cd nuget
47

    
48
echo Packing core nuget package
49
cd core
50
..\nuget pack NetSparkle.nuspec -Version %1
51
cd ..
52

    
53
echo Packing tools nuget package
54
cd tools
55
..\nuget pack NetSparkle.Tools.nuspec -Version %1
56
cd ..
57

    
58
echo Pushing nuget package 
59
nuget Push core\NetSparkle.New.%1.nupkg -Source https://www.nuget.org/api/v2/package
60
nuget Push tools\NetSparkle.New.Tools.%1.nupkg -Source https://www.nuget.org/api/v2/package
61

    
62
echo Leaving directories
63
cd ..
클립보드 이미지 추가 (최대 크기: 500 MB)