|
| 1 | +@echo off |
| 2 | +cls |
| 3 | + |
| 4 | +echo Write the source branch name (you current branch name, where were the changes made): |
| 5 | +set /p userDefinedSourceBranch= |
| 6 | +echo. |
| 7 | +echo Write the destination branch name (the branch from which you can get the latest changes, like 'develop' or 'main/master'): |
| 8 | +set /p userDefinedDestinationBranch= |
| 9 | +echo. |
| 10 | +echo Write your custom version number: |
| 11 | +set /p userDefinedVersion= |
| 12 | +echo. |
| 13 | + |
| 14 | +:: Set init params value |
| 15 | +set applicationName=DynamicExcelProvider |
| 16 | +set runVersionIncrement=y |
| 17 | +set runGenChangeLog=y |
| 18 | +:: If runBuild > y(yes), build in release mode |
| 19 | +set runBuild=y |
| 20 | +set runSolutionTest=n |
| 21 | +set runTest=n |
| 22 | +set runPack=y |
| 23 | +set assemblyPath=$('..\src\shared\GeneralAssemblyInfo.cs') |
| 24 | +set genType=-2 |
| 25 | +set setInChangeLogNewVersion=y |
| 26 | +set autoCommitAndPush=n |
| 27 | +set autoGetLatestDevelop=y |
| 28 | +set changeLogPath=$('..\docs\CHANGELOG.MD') |
| 29 | +set sourceBranch=%userDefinedSourceBranch% |
| 30 | +set destinationBranch=%userDefinedDestinationBranch% |
| 31 | +set customVersion=%userDefinedVersion% |
| 32 | +set solutionPath=$('..\src\RzR.Shared.Export.sln') |
| 33 | +set packResultPath=$('..\nuget\') |
| 34 | +set packProjectsPath=$('..\src\DynamicExcelProvider\DynamicExcelProvider.csproj') |
| 35 | +set testProjectsPath=$('..\src\tests\FuncTests\WorkXCoreFuncTests.csproj','..\src\tests\GeneralDocumentGeneratorTests\GeneralDocumentGeneratorTests.csproj') |
| 36 | + |
| 37 | + |
| 38 | +echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |
| 39 | +echo ::: Initialize: ::: |
| 40 | +echo ::: - New application version generation ::: |
| 41 | +echo ::: - Change log generation ::: |
| 42 | +echo ::: - Build ::: |
| 43 | +echo ::: - Test ::: |
| 44 | +echo ::: - Create package ::: |
| 45 | +echo ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: |
| 46 | +echo: |
| 47 | +echo: |
| 48 | + |
| 49 | +PowerShell -NoProfile -ExecutionPolicy ByPass -Command ".\GenerateBuildInfo.exe -scriptCommands \"runVersionIncrement=%runVersionIncrement%;runGenChangeLog=%runGenChangeLog%;runBuild=%runBuild%;runSolutionTest=%runSolutionTest%;runTest=%runTest%;runPack=%runPack%;setInChangeLogNewVersion=%setInChangeLogNewVersion%;autoCommitAndPush=%autoCommitAndPush%;autoGetLatestDevelop=%autoGetLatestDevelop%;changeLogPath=%changeLogPath%;sourceBranch=%sourceBranch%;destinationBranch=%destinationBranch%;assemblyPath=%assemblyPath%;customVersion=%customVersion%;genType=%genType%;solutionPath=%solutionPath%;packResultPath=%packResultPath%;packProjectsPath=%packProjectsPath%;testProjectsPath=%testProjectsPath%\""; |
| 50 | + |
| 51 | +echo |
| 52 | +pause |
0 commit comments