From d98812b8f32dd84ba639c1399ba7d4b61921c7a3 Mon Sep 17 00:00:00 2001 From: Jing Date: Sat, 21 Oct 2017 21:23:20 +0900 Subject: [PATCH] update script for build every release editions --- build-release.bat | 50 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 39 insertions(+), 11 deletions(-) diff --git a/build-release.bat b/build-release.bat index 0f099521..1b2f69ae 100644 --- a/build-release.bat +++ b/build-release.bat @@ -1,7 +1,7 @@ @ECHO OFF SET ERRORLEVEL=0 -SET VER=2.0.2.0 +SET VER=2.1.0.0 REM #SET MSB="C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild" SET MSB="C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" @@ -164,10 +164,10 @@ XCOPY Editor\Bin\Extension\zh-CN %OUT_DIR%\zh-CN\ /e ECHO ------------------- WPFExtension ----------------------- -SET CFG=WPFExtension -%MSB% ReoGridWPF.sln %MSB_ARG% /p:Configuration=%CFG%;TargetFrameworkVersion=v3.5,Profile=Client +SET CFG=Extension +%MSB% ReoGrid\ReoGrid.csproj %MSB_ARG% /p:Configuration=%CFG%;TargetFrameworkVersion=v3.5,Profile=Client -SET OUT_DIR=%OUT_REPO%\ReoGrid-%VER%-%CFG% +SET OUT_DIR=%OUT_REPO%\ReoGrid-%VER%-WPF%CFG% IF EXIST %OUT_DIR% RMDIR %OUT_DIR% /S /Q MKDIR %OUT_DIR% COPY ReoGrid\bin\%CFG%\unvell.ReoGrid.dll %OUT_DIR%\ @@ -178,6 +178,34 @@ COPY "license*" %OUT_DIR%\ COPY "README.md" %OUT_DIR%\ +ECHO ------------------- WPFRelease ----------------------- + +SET CFG=Release +%MSB% ReoGrid\ReoGrid.csproj %MSB_ARG% /p:Configuration=%CFG%;TargetFrameworkVersion=v3.5,Profile=Client + +SET OUT_DIR=%OUT_REPO%\ReoGrid-%VER%-WPF%CFG% +IF EXIST %OUT_DIR% RMDIR %OUT_DIR% /S /Q +MKDIR %OUT_DIR% +COPY ReoGrid\bin\%CFG%\unvell.ReoGrid.dll %OUT_DIR%\ +COPY ReoGrid\bin\%CFG%\unvell.ReoGrid.xml %OUT_DIR%\ +COPY "license*" %OUT_DIR%\ +COPY "README.md" %OUT_DIR%\ + + +ECHO ------------------- WPFMinimum ----------------------- + +SET CFG=Minimum +%MSB% ReoGrid\ReoGrid.csproj %MSB_ARG% /p:Configuration=%CFG%;TargetFrameworkVersion=v3.5,Profile=Client + +SET OUT_DIR=%OUT_REPO%\ReoGrid-%VER%-WPF%CFG% +IF EXIST %OUT_DIR% RMDIR %OUT_DIR% /S /Q +MKDIR %OUT_DIR% +COPY ReoGrid\bin\%CFG%\unvell.ReoGrid.dll %OUT_DIR%\ +COPY ReoGrid\bin\%CFG%\unvell.ReoGrid.xml %OUT_DIR%\ +COPY "license*" %OUT_DIR%\ +COPY "README.md" %OUT_DIR%\ + + ECHO ----------------- Demo WPF --------------------- SET OUT_DIR=%OUT_REPO%\ReoGrid-%VER%-WPFDemo-Binary @@ -219,13 +247,13 @@ ECHO ----------------- Demo Source Ja --------------------- IF EXIST %OUT_FILE% del %OUT_FILE% %ZIP% a -tzip %OUT_FILE% ..\DemoJP ..\Readme.md ..\license* ..\DemoJP.sln -xr!?svn\* -xr!?.vs\* -xr!?*.user -REM @SET OUT_FILE=ReoGrid-%VER%-Demo-Binary.zip -REM IF EXIST %OUT_FILE% del %OUT_FILE% -REM %ZIP% a -tzip %OUT_FILE% ReoGrid-%VER%-Demo-Binary +@SET OUT_FILE=ReoGrid-%VER%-Demo-Binary.zip +IF EXIST %OUT_FILE% del %OUT_FILE% +%ZIP% a -tzip %OUT_FILE% ReoGrid-%VER%-Demo-Binary\ -REM @SET OUT_FILE=ReoGrid-%VER%-DemoWPF-Binary.zip -REM IF EXIST %OUT_FILE% del %OUT_FILE% -REM %ZIP% a -tzip %OUT_FILE% ReoGrid-%VER%-WPFDemo-Binary +@SET OUT_FILE=ReoGrid-%VER%-DemoWPF-Binary.zip +IF EXIST %OUT_FILE% del %OUT_FILE% +%ZIP% a -tzip %OUT_FILE% ReoGrid-%VER%-WPFDemo-Binary\ ECHO ----------------- Demo WPF Source --------------------- @SET OUT_FILE=ReoGrid-%VER%-WPFDemo-Source.zip @@ -245,7 +273,7 @@ SET OUT_PKG_NAME=ReoGrid-%VER%-All-Packages.zip ReoGrid-%VER%-Extension ^ ReoGrid-%VER%-WPFExtension ^ ReoGrid-%VER%-Demo-Source.zip ^ - ReoGrid-%VER%-WPFDemo-Source.zip + ReoGrid-%VER%-WPFDemo-Source.zip ECHO ----------------- All Packages Ja --------------------- SET OUT_PKG_NAME=ReoGrid-%VER%-All-Packages-Ja.zip