2011-06-02 04:41:24 +02:00
|
|
|
SET PACKAGEROOT=_rawPackage
|
|
|
|
SET TARGET=%PACKAGEROOT%\NzbDrone
|
2013-04-19 08:09:52 +02:00
|
|
|
SET COPY_FLAGS=/S /V /I /Y
|
|
|
|
SET DELETE_FLAGS=/Q /F /S
|
2011-05-31 04:05:39 +02:00
|
|
|
|
2012-04-14 02:57:31 +02:00
|
|
|
rd %PACKAGEROOT% /S /Q
|
2013-04-19 08:09:52 +02:00
|
|
|
del nzbdrone*.zip %DELETE_FLAGS%
|
|
|
|
del _output\FluentValidation.resources.dll %DELETE_FLAGS%
|
2011-10-26 19:35:55 +02:00
|
|
|
|
2013-01-07 04:41:17 +01:00
|
|
|
echo ##teamcity[progressMessage 'Packaging release']
|
2011-11-14 01:57:03 +01:00
|
|
|
|
2013-04-19 08:09:52 +02:00
|
|
|
xcopy ServiceHelpers\ServiceInstall\bin\Release\*.exe %TARGET%\ %COPY_FLAGS%
|
|
|
|
xcopy ServiceHelpers\ServiceUninstall\bin\Release\*.exe %TARGET%\ %COPY_FLAGS%
|
2011-05-31 04:05:39 +02:00
|
|
|
|
2013-04-19 08:09:52 +02:00
|
|
|
xcopy _output\*.* %TARGET%\ %COPY_FLAGS%
|
|
|
|
xcopy NzbDrone.Update\bin\Release\*.* %TARGET%\NzbDrone.Update\ %COPY_FLAGS%
|
2011-05-31 04:05:39 +02:00
|
|
|
|
2011-06-02 04:41:24 +02:00
|
|
|
CD %PACKAGEROOT%
|
2011-10-31 06:45:06 +01:00
|
|
|
|
2013-04-19 08:09:52 +02:00
|
|
|
del *.xml %DELETE_FLAGS%
|
|
|
|
del *.vshost.exe.* %DELETE_FLAGS%
|
2012-04-14 02:57:31 +02:00
|
|
|
|
2011-06-02 04:41:24 +02:00
|
|
|
..\Libraries\7zip\7za.exe a -tzip ..\NzbDrone.zip *
|
|
|
|
|
2013-01-07 04:41:17 +01:00
|
|
|
CD ..
|
|
|
|
|
|
|
|
echo ##teamcity[progressMessage 'Release packaged']
|