Skip to content

A Swiss Army knife for developers.

[CI] Updated the CI so we can publish the generated packages to the MS Store (#1)

Etienne Baudouxf7f7693d9fb5
diff --git a/README.md b/README.md
index 21e1ccb75..193881020 100644
--- a/README.md
+++ b/README.md
@@ -69,5 +69,5 @@ See [LICENSE](LICENSE.md)
## Special Thanks
-* Code contributors: [Krazus](https://github.com/krazus)
+* Code contributors: [BenjaminT](https://github.com/btiteux)
* Designer: [Jakub](https://github.com/alur2020)
diff --git a/ci/azure-pipelines-release.yml b/ci/azure-pipelines-release.yml
index 58e62d86b..15799c300 100644
--- a/ci/azure-pipelines-release.yml
+++ b/ci/azure-pipelines-release.yml
@@ -31,6 +31,7 @@ jobs:
script: |
[xml]$xmlDoc = Get-Content $(Build.SourcesDirectory)\src\dev\shared\Package.appxmanifest
$xmlDoc.Package.Identity.Name="DevToys"
+ $xmlDoc.Package.Identity.Publisher="CN=etiennebaudoux"
$xmlDoc.Package.Properties.DisplayName="DevToys"
$xmlDoc.Package.Applications.Application.VisualElements.DisplayName="DevToys"
$xmlDoc.Save('$(Build.SourcesDirectory)\src\dev\shared\Package.appxmanifest')
@@ -54,12 +55,13 @@ jobs:
displayName: 'Build Sideload package'
inputs:
solution: '$(uwpProject)'
+ platform: 'x86'
configuration: '$(buildConfiguration)'
- msbuildArguments: '/t:build
+ msbuildArguments: '/t:build;_GenerateAppxPackage
/p:AppxBundlePlatforms="$(buildPlatform)"
/p:AppxPackageDir="$(appxPackageDir)"
/p:AppxBundle=Always
- /p:UapAppxPackageBuildMode=SideloadOnly
+ /p:UapAppxPackageBuildMode=Sideload
/p:AppxPackageSigningEnabled=true
/p:PackageCertificateKeyFile="$(signingCert.secureFilePath)"
/p:PackageCertificatePassword=""
@@ -84,6 +86,7 @@ jobs:
script: |
[xml]$xmlDoc = Get-Content $(Build.SourcesDirectory)\src\dev\shared\Package.appxmanifest
$xmlDoc.Package.Identity.Name="64360VelerSoftware.DevToys"
+ $xmlDoc.Package.Identity.Publisher="CN=3D87C8C2-C6F4-4875-B258-5FEC13B08F81"
$xmlDoc.Package.Properties.DisplayName="DevToys"
$xmlDoc.Package.Applications.Application.VisualElements.DisplayName="DevToys"
$xmlDoc.Save('$(Build.SourcesDirectory)\src\dev\shared\Package.appxmanifest')
@@ -101,12 +104,14 @@ jobs:
displayName: 'Build Store package'
inputs:
solution: '$(uwpProject)'
+ platform: 'x86'
configuration: '$(buildConfiguration)'
- msbuildArguments: '/t:build
+ msbuildArguments: '/t:build;_GenerateAppxPackage
/p:AppxBundlePlatforms="$(buildPlatform)"
/p:AppxPackageDir="$(appxPackageDir)"
/p:AppxBundle=Always
- /p:UapAppxPackageBuildMode=StoreUpload'
+ /p:UapAppxPackageBuildMode=StoreUpload
+ /p:AppxPackageSigningEnabled=false'
maximumCpuCount: true
- task: PublishBuildArtifacts@1
diff --git a/src/dev/DevToys.Startup/DevToys.Startup.wapproj b/src/dev/DevToys.Startup/DevToys.Startup.wapproj
index b7ba60b9d..1e2e38c74 100644
--- a/src/dev/DevToys.Startup/DevToys.Startup.wapproj
+++ b/src/dev/DevToys.Startup/DevToys.Startup.wapproj
@@ -54,6 +54,8 @@
<AppxBundle>Always</AppxBundle>
<EntryPointProjectUniqueName>..\impl\DevToys\DevToys.csproj</EntryPointProjectUniqueName>
<UapAppxPackageBuildMode>StoreAndSideload</UapAppxPackageBuildMode>
+ <AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
+ <AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\impl\DevToys\DevToys.csproj" />
@@ -116,8 +118,5 @@
<SubType>Designer</SubType>
</AppxManifest>
</ItemGroup>
- <!-- <ItemGroup>
- <PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="$(NuGet_MicrosoftWindowsSDKBuildTools)" PrivateAssets="all" />
- </ItemGroup> -->
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
</Project>
\ No newline at end of file