-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathBuildPackages.bat
39 lines (32 loc) · 967 Bytes
/
BuildPackages.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
@echo off
set JDK_DIR=
set ANDROID_SDK_DIR=
IF exist Packages (
rmdir Packages /s /q
)
mkdir Packages
dotnet build Application.Android -c Release "/p:AndroidSdkDirectory=%ANDROID_SDK_DIR%" "/p:JavaSdkDirectory=%JDK_DIR%"
IF %ERRORLEVEL% NEQ 0 (
exit
)
dotnet build Application.Avalonia -c Release
IF %ERRORLEVEL% NEQ 0 (
exit
)
dotnet build MacOS -c Release
IF %ERRORLEVEL% NEQ 0 (
exit
)
dotnet build Tests -c Release
IF %ERRORLEVEL% NEQ 0 (
exit
)
dotnet pack Core -c Release -o Packages
dotnet pack Configuration -c Release -o Packages
dotnet pack Avalonia -c Release -o Packages
dotnet pack Application -c Release -o Packages
dotnet pack Application.Android -c Release -o Packages "-p:AndroidSdkDirectory=%ANDROID_SDK_DIR%" "-p:JavaSdkDirectory=%JDK_DIR%"
dotnet pack Application.Avalonia -c Release -o Packages
dotnet pack AutoUpdate -c Release -o Packages
dotnet pack MacOS -c Release -o Packages
dotnet pack Tests -c Release -o Packages