2
2
# Licensed under the MIT License.
3
3
4
4
param (
5
- [string ]$ReleaseBranch = " Debug" , # This has to correspond with one of the AppEnvironment enum values
5
+ [string ]$ReleaseBranch = " Debug" , # Debug, Release, SideloadPreview, SideloadStable, StorePreview, or StoreStable
6
6
[string ]$SolutionPath = " Files.slnx" ,
7
7
[string ]$StartupProjectPath = " " ,
8
8
[string ]$Platform = " x64" ,
@@ -18,36 +18,36 @@ msbuild $SolutionPath /t:Restore /p:Platform=$Platform /p:Configuration=$Configu
18
18
19
19
if ($ReleaseBranch -eq " Debug" )
20
20
{
21
- if ($Platform -eq " x64" )
22
- {
23
- msbuild $StartupProjectPath `
24
- / t:Build `
25
- / clp:ErrorsOnly `
26
- / p:Platform= $Platform `
27
- / p:Configuration= $Configuration `
28
- / p:AppxBundlePlatforms= $Platform `
29
- / p:AppxBundle= Always `
30
- / p:UapAppxPackageBuildMode= SideloadOnly `
31
- / p:AppxPackageDir= $AppxPackageDir `
32
- / p:AppxPackageSigningEnabled= true `
33
- / p:PackageCertificateKeyFile= $AppxPackageCertKeyFile `
34
- / p:PackageCertificatePassword= " " `
35
- / p:PackageCertificateThumbprint= " "
36
- }
37
- else
38
- {
39
- msbuild $StartupProjectPath `
40
- / t:Build `
41
- / clp:ErrorsOnly `
42
- / p:Platform= $Platform `
43
- / p:Configuration= $Configuration `
44
- / p:AppxBundle= Never
45
- }
21
+ msbuild $StartupProjectPath `
22
+ / t:Build `
23
+ / clp:ErrorsOnly `
24
+ / p:Platform= $Platform `
25
+ / p:Configuration= $Configuration `
26
+ / p:AppxBundle= Never `
27
+ / v:quiet
28
+ }
29
+ elseif ($ReleaseBranch -eq " Release" )
30
+ {
31
+ msbuild $StartupProjectPath `
32
+ / t:Build `
33
+ / clp:ErrorsOnly `
34
+ / p:Platform= $Platform `
35
+ / p:Configuration= $Configuration `
36
+ / p:AppxBundlePlatforms= $Platform `
37
+ / p:AppxBundle= Always `
38
+ / p:UapAppxPackageBuildMode= SideloadOnly `
39
+ / p:AppxPackageDir= $AppxPackageDir `
40
+ / p:AppxPackageSigningEnabled= true `
41
+ / p:PackageCertificateKeyFile= $AppxPackageCertKeyFile `
42
+ / p:PackageCertificatePassword= " " `
43
+ / p:PackageCertificateThumbprint= " " `
44
+ / v:quiet
46
45
}
47
46
elseif ($ReleaseBranch -contains " Sideload" )
48
47
{
49
48
msbuild $StartupProjectPath `
50
49
/ t:Build `
50
+ / t:_GenerateAppxPackage `
51
51
/ clp:ErrorsOnly `
52
52
/ p:Platform= $Platform `
53
53
/ p:Configuration= $Configuration `
@@ -56,7 +56,8 @@ elseif ($ReleaseBranch -contains "Sideload")
56
56
/ p:AppxBundle= Always `
57
57
/ p:UapAppxPackageBuildMode= Sideload `
58
58
/ p:GenerateAppInstallerFile= True `
59
- / p:AppInstallerUri= $AppInstallerUrl
59
+ / p:AppInstallerUri= $AppInstallerUrl `
60
+ / v:quiet
60
61
61
62
$newSchema = ' http://schemas.microsoft.com/appx/appinstaller/2018'
62
63
$localFilePath = ' $AppxPackageDir/Files.Package.appinstaller'
@@ -68,11 +69,13 @@ elseif ($ReleaseBranch -contains "Store")
68
69
{
69
70
msbuild $StartupProjectPath `
70
71
/ t:Build `
72
+ / t:_GenerateAppxPackage `
71
73
/ clp:ErrorsOnly `
72
74
/ p:Platform= $Platform `
73
75
/ p:Configuration= $Configuration `
74
76
/ p:AppxBundlePlatforms= $AppxBundlePlatforms `
75
77
/ p:AppxPackageDir= $AppxPackageDir `
76
78
/ p:AppxBundle= Always `
77
- / p:UapAppxPackageBuildMode= StoreUpload
79
+ / p:UapAppxPackageBuildMode= StoreUpload `
80
+ / v:quiet
78
81
}
0 commit comments