-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCreateZip.cmd
32 lines (24 loc) · 1.05 KB
/
CreateZip.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
REM ***********************************************
REM ** You have change version number ? **
REM ** Otherwise change before press Enter key **
REM ***********************************************
PAUSE
rd /S /Q "C:\db\Projects\Builds\Trinity\"
REM Clean Directory
rd /S /Q "Trinity\bin"
rd /S /Q "Trinity\obj"
rd /S /Q "Trinity\Logs"
del /F /S /Q "Trinity\ItemRules\Log\*"
REM Clean Old Zip file
del Latest-Trinity.zip
REM Create Temp Directory and pull source inside
xcopy /E /Y "Trinity\*.cs" "C:\db\Projects\Builds\Trinity\"
xcopy /E /Y "Trinity\*.dis" "C:\db\Projects\Builds\Trinity\"
xcopy /E /Y "Trinity\*.xaml" "C:\db\Projects\Builds\Trinity\"
xcopy /E /Y "Trinity\*.xml" "C:\db\Projects\Builds\Trinity\"
xcopy /E /Y "Trinity\*.xsd" "C:\db\Projects\Builds\Trinity\"
xcopy /E /Y "Trinity\*.txt" "C:\db\Projects\Builds\Trinity\"
REM Copy to SVN
xcopy /E /Y "C:\db\Projects\Builds\Trinity\" "C:\db\svn\Trinity\trunk\Sources\"
REM Zip fresh directory
7za.exe a Latest-Trinity.zip "C:\db\Projects\Builds\Trinity\" -mx9