6056 |
efrain |
1 |
@echo off
|
|
|
2 |
|
|
|
3 |
NuGet Update -self
|
|
|
4 |
REM remove package content folder
|
|
|
5 |
echo Deleting existing content directory if available.
|
|
|
6 |
if exist content (
|
|
|
7 |
rmdir /s /q content
|
|
|
8 |
echo Content directory deleted.
|
|
|
9 |
) else (
|
|
|
10 |
echo Content directory not found.
|
|
|
11 |
)
|
|
|
12 |
|
|
|
13 |
echo Creating content directory.
|
|
|
14 |
|
|
|
15 |
REM create new package content folder
|
|
|
16 |
mkdir content
|
|
|
17 |
|
|
|
18 |
REM create sub folder for js files
|
|
|
19 |
mkdir content\Scripts
|
|
|
20 |
|
|
|
21 |
REM create sub folders for css and img files
|
|
|
22 |
mkdir content\Content
|
|
|
23 |
mkdir content\Content\bootstrap-fileinput
|
|
|
24 |
|
|
|
25 |
REM delete the previous package versions
|
|
|
26 |
REM del bootstrap-fileinput.*
|
|
|
27 |
|
|
|
28 |
REM copy the content to the destination folders
|
|
|
29 |
xcopy ..\js content\Scripts /D /E /C /R /I /K /Y
|
|
|
30 |
xcopy ..\css content\Content\bootstrap-fileinput\css /D /E /C /R /I /K /Y
|
|
|
31 |
xcopy ..\img content\Content\bootstrap-fileinput\img /D /E /C /R /I /K /Y
|
|
|
32 |
xcopy ..\themes content\Content\bootstrap-fileinput\themes /D /E /C /R /I /K /Y
|
|
|
33 |
xcopy ..\scss content\Content\bootstrap-fileinput\scss /D /E /C /R /I /K /Y
|
|
|
34 |
|
|
|
35 |
REM create a new package
|
|
|
36 |
NuGet Pack Package.nuspec -Exclude NuGet.exe;build.bat
|
|
|
37 |
|
|
|
38 |
REM Upload the new package
|
|
|
39 |
REM for %%f in (content\Content\bootstrap-fileinput.*) do (
|
|
|
40 |
REM NuGet Push %%f
|
|
|
41 |
REM rmdir /s /q content
|
|
|
42 |
REM del %%f
|
|
|
43 |
REM )
|