-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-dev.cmd
More file actions
57 lines (51 loc) · 2.26 KB
/
build-dev.cmd
File metadata and controls
57 lines (51 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@echo off
echo THIS IS THE DEVELOPMENT BUILD SCRIPT. IT REQUIRES A FULL WORKING GIT ENVIRONMENT. DO NOT RUN THIS SCRIPT AS PART OF A CI BUILD - USE build.cmd INSTEAD.
SET config=%1
REM Set build configuration to Debug if not specified.
IF [%1]==[] (
SET config="Debug"
)
SET ver=%2
REM Extract version number from git tags if not specified.
IF [%2]==[] (
FOR /F "tokens=* USEBACKQ" %%F IN (`git describe`) DO (
SET ver=%%F
)
)
echo Building ROOTMAP projects as version %ver% in %config% configuration.
echo.
echo ################################################################################
echo ######## Updating all git submodules. ########
echo ################################################################################
git submodule update --init --recursive
echo ################################################################################
echo ######## Building ROOTMAP.CLI. ########
echo ################################################################################
pushd ROOTMAP.CLI
nuget restore
pushd ROOTMAP.Core
REM TODO Some kind of check to see if this is necessary?
powershell -File .\Prepare-ROOTMAP-Dependencies.ps1
popd
msbuild ROOTMAP.CLI.sln /p:Configuration=%config% /p:Version=%ver%
popd
echo ################################################################################
echo ######## Building ROOTMAP.Native. ########
echo ################################################################################
pushd ROOTMAP.Native
nuget restore
msbuild ROOTMAP.Native.sln /p:Configuration=%config% /p:Version=%ver%
popd
echo ################################################################################
echo ######## Building ROOTMAP.Configurator. ########
echo ################################################################################
pushd ROOTMAP.Configurator\App
call build.cmd %config% %ver%
popd
pushd ROOTMAP.Configurator\ConfigurationImporter
call build.cmd %config% %ver%
popd
pushd ROOTMAP.Configurator\SchemaValidator\ConsoleApp
dotnet build --configuration %config% -p:Version=%ver%
dotnet publish -p:Configuration=%config% -p:Version=%ver% -p:PublishTrimmed=false --runtime win-x64 --sc
popd