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