2013-03-31 14:09:38 +02:00
|
|
|
@echo off
|
2015-11-26 15:56:52 +01:00
|
|
|
cd /d %~dp0
|
2014-05-05 10:22:23 +02:00
|
|
|
set curdate=%date:~6,4%-%date:~3,2%-%date:~0,2%
|
2015-06-05 06:12:49 +02:00
|
|
|
set target=%cd%\..\..\ChanSort_%curdate%
|
2017-06-08 23:27:34 +02:00
|
|
|
set DXversion=17.1
|
2013-03-31 14:09:38 +02:00
|
|
|
mkdir "%target%" 2>nul
|
|
|
|
|
del /s /q "%target%\*"
|
|
|
|
|
copy debug\ChanSort.exe* "%target%"
|
|
|
|
|
copy debug\ChanSort.*.dll "%target%"
|
|
|
|
|
copy debug\ChanSort.*.ini "%target%"
|
|
|
|
|
copy debug\Lookup.csv "%target%"
|
2013-04-11 02:38:56 +02:00
|
|
|
copy DLL\* "%target%"
|
2013-05-30 09:28:01 +02:00
|
|
|
del "%target%\*nunit*.dll"
|
2013-03-31 14:09:38 +02:00
|
|
|
mkdir "%target%\de" 2>nul
|
2014-09-11 15:22:31 +02:00
|
|
|
mkdir "%target%\pt" 2>nul
|
|
|
|
|
mkdir "%target%\ru" 2>nul
|
2017-01-26 12:49:36 +01:00
|
|
|
mkdir "%target%\cs" 2>nul
|
2016-05-07 03:31:37 +02:00
|
|
|
mkdir "%target%\ReferenceLists" 2>nul
|
2013-03-31 14:09:38 +02:00
|
|
|
xcopy /siy debug\de "%target%\de"
|
2013-07-22 20:13:34 +02:00
|
|
|
xcopy /siy debug\pt "%target%\pt"
|
2015-10-04 17:47:38 +02:00
|
|
|
xcopy /siy debug\ru "%target%\ru"
|
2017-01-26 12:49:36 +01:00
|
|
|
xcopy /siy debug\cs "%target%\cs"
|
2016-05-07 03:31:37 +02:00
|
|
|
xcopy /siy ChanSort\ReferenceLists\* "%target%\ReferenceLists"
|
2015-06-13 18:37:59 +02:00
|
|
|
copy ..\readme.md "%target%\readme.txt"
|
|
|
|
|
copy changelog.md "%target%\changelog.txt"
|
2013-11-23 15:09:20 +01:00
|
|
|
for %%f in (Utils Data Printing XtraPrinting XtraReports XtraEditors XtraBars XtraGrid XtraLayout XtraTreeList) do call :copyDll %%f
|
2015-11-26 15:56:52 +01:00
|
|
|
call :CodeSigning
|
2013-03-31 14:09:38 +02:00
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
del Website\ChanSort.zip 2>nul
|
2013-04-04 01:50:49 +02:00
|
|
|
copy Source\readme.txt %target%
|
2013-06-23 14:58:44 +02:00
|
|
|
cd %target%\..
|
|
|
|
|
"c:\program files\7-Zip\7z.exe" a -tzip ChanSort_%curdate%.zip ChanSort_%curdate%
|
2013-04-04 01:50:49 +02:00
|
|
|
|
2013-03-31 14:09:38 +02:00
|
|
|
|
|
|
|
|
pause
|
|
|
|
|
goto:eof
|
|
|
|
|
|
2015-11-26 15:56:52 +01:00
|
|
|
:CodeSigning
|
|
|
|
|
rem -----------------------------
|
|
|
|
|
rem If you want to digitally sign the generated .exe and .dll files,
|
|
|
|
|
rem you need to have your code signing certificate installed in the Windows certificate storage
|
|
|
|
|
rem -----------------------------
|
2017-01-26 12:49:36 +01:00
|
|
|
set signtool="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\signtool.exe"
|
2015-11-26 15:56:52 +01:00
|
|
|
set oldcd=%cd%
|
|
|
|
|
cd %target%
|
2017-01-26 12:49:36 +01:00
|
|
|
set files=ChanSort.exe ChanSort*.dll de\ChanSort*.dll ru\ChanSort*.dll pt\ChanSort*.dll cs\ChanSort*.dll
|
2015-11-26 15:56:52 +01:00
|
|
|
%signtool% sign /a /t "http://timestamp.comodoca.com/authenticode" %files%
|
|
|
|
|
if errorlevel 1 goto :error
|
|
|
|
|
cd %oldcd%
|
|
|
|
|
goto:eof
|
|
|
|
|
|
2013-03-31 14:09:38 +02:00
|
|
|
:copyDll
|
2014-03-01 04:20:14 +01:00
|
|
|
echo Copying DevExpress %1
|
|
|
|
|
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\DevExpress.%1.v%DXversion%.dll"
|
2013-03-31 14:09:38 +02:00
|
|
|
if exist %source% copy %source% "%target%"
|
2014-03-01 04:20:14 +01:00
|
|
|
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\DevExpress.%1.v%DXversion%.Core.dll"
|
2013-03-31 14:09:38 +02:00
|
|
|
if exist %source% copy %source% "%target%"
|
2014-03-01 04:20:14 +01:00
|
|
|
for %%l in (de pt) do call :copyLangDll %1 %%l
|
|
|
|
|
goto:eof
|
|
|
|
|
|
|
|
|
|
:copyLangDll
|
|
|
|
|
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\%2\DevExpress.%1.v%DXversion%.resources.dll"
|
|
|
|
|
if exist %source% copy %source% "%target%\%2"
|
|
|
|
|
set source="C:\Program Files (x86)\DevExpress %DXversion%\Components\Bin\Framework\%2\DevExpress.%1.v%DXversion%.Core.resources.dll"
|
|
|
|
|
if exist %source% copy %source% "%target%\%2"
|
2015-11-26 15:56:52 +01:00
|
|
|
goto:eof
|
|
|
|
|
|
|
|
|
|
:error
|
|
|
|
|
pause
|
2013-03-31 14:09:38 +02:00
|
|
|
goto:eof
|