-
Notifications
You must be signed in to change notification settings - Fork 82
/
buildandstart.bat
42 lines (33 loc) · 905 Bytes
/
buildandstart.bat
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
@echo OFF
echo ------------------------------
echo Digital Workflow Platform
echo Build and Start script
echo https://dwkit.com
for /f "delims== tokens=1,*" %%G in (config.cfg) do set %%G=%%H
echo -
echo Step 1 Install NPM packages
echo ------------------------------
cd src\OptimaJet.DWKit.StarterApplication
call npm install
echo -
echo Step 2 Build Webpack
echo ------------------------------
call webpack -p
cd ..\..
echo -
echo Step 3 dotnet build
echo ------------------------------
dotnet build
IF ERRORLEVEL 9009 goto :NO_SDK_ERROR
echo -
echo Step 4 dotnet publish
echo ------------------------------
dotnet publish -o ..\..\bin
echo -
echo Starting...
echo -----------------------------
start.bat
exit
:NO_SDK_ERROR
echo .NET Core not found. Please install .NET Core SDK 2.1 to run this application
echo For more information visit https://dotnet.microsoft.com/download/dotnet-core/2.1