forked from microsoft/WindowsAppSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakeAppxHelper.cmd
56 lines (42 loc) · 1.21 KB
/
MakeAppxHelper.cmd
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
@echo OFF
SETLOCAL
echo -- MakeAppxHelper.cmd %* --
pushd %~dp0
set PATH=%TFS_SourcesDirectory%\tools;%PATH%;%ProgramFiles(x86)%\Windows Kits\10\bin\x86
set ExitCode=0
set ERRORLEVEL=
if "%1" NEQ "" (
set TFS_PLATFORM=%1
)
if "%2" NEQ "" (
set TFS_BUILDCONFIGURATION=%2
)
if "%TFS_PLATFORM%" EQU "" (
echo Expecting TFS_PLATFORM to be set
exit /b 1
)
if "%TFS_BUILDCONFIGURATION%" EQU "" (
echo Expecting TFS_BUILDCONFIGURATION to be set
exit /b 1
)
set BasePackageName=Microsoft.ProjectReunion
if "%BUILDOUTPUT_OVERRIDE%" EQU "" (
echo Expecting BUILDOUTPUT_OVERRIDE to be set
exit /b 1
)
if "%BUILDINPUT_OVERRIDE%" EQU "" (
echo Expecting BUILDINPUT_OVERRIDE to be set
exit /b 1
)
set InputDirectory=%BUILDINPUT_OVERRIDE%\
set OutputDirectory=%BUILDOUTPUT_OVERRIDE%\AppX\win10-%TFS_PLATFORM%
call ..\build\FrameworkPackage\MakeFrameworkPackage.cmd -InputDirectory '%InputDirectory%' ^
-OutputDirectory '%OutputDirectory%' -BasePackageName '%BasePackageName%' ^
-Platform %TFS_PLATFORM% -Configuration %TFS_BUILDCONFIGURATION% ^
%3 %4 %5 %6 %7 %8 %9
if %ERRORLEVEL% NEQ 0 (
@echo ##vso[task.logissue type=error;] MakeFrameworkPackage failed with exit code %ERRORLEVEL%
goto END
)
:END
EXIT /B %ERRORLEVEL%