-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.bat
30 lines (23 loc) · 1.1 KB
/
build.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
@echo off
echo -------------------------------------------------------------
echo Starting build...
echo -------------------------------------------------------------
rem Set this to Release or Debug values
set dotnetConfiguration=Release
rem Build core
Resources\nuget.exe restore Khernet.Core\Khernet.Core.sln
msbuild Khernet.Core\Khernet.Core.sln -p:Platform=x86 /property:Configuration=%dotnetConfiguration%
rem Build user interface
Resources\nuget.exe restore Khernet.UI\Khernet.UI.sln
msbuild Khernet.UI\Khernet.UI.sln -p:Platform=x86 /property:Configuration=%dotnetConfiguration%
rem Build installer with Inno Setup
cd Khernet.Installer
"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" KhernetInstaller.iss
rem Copy final installer to bin directory
set mainApp_path=bin\KhernetInstaller-0.22.0.0.exe
set installerDest=..\bin\Khernet.Installer
if not exist %installerDest% mkdir %installerDest%
if exist %mainApp_path% copy %mainApp_path% %installerDest%
echo -------------------------------------------------------------
echo Build finished.
echo -------------------------------------------------------------