Skip to content

Commit

Permalink
Merge pull request #263 from microsoft/staging
Browse files Browse the repository at this point in the history
Release - 8/20/24
  • Loading branch information
EricJohnson327 authored Aug 20, 2024
2 parents 1636418 + ea016b5 commit ce908ad
Show file tree
Hide file tree
Showing 43 changed files with 2,574 additions and 538 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ADOExt-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
configuration: [Release, Debug]
platform: [x64, arm64]
os: [windows-latest]
dotnet-version: ['6.0.x']
dotnet-version: ['8.0.x']
exclude:
- configuration: Debug
platform: x64
Expand Down
2 changes: 1 addition & 1 deletion build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ parameters:
- release

variables:
MSIXVersion: '0.1100'
MSIXVersion: '0.1200'
solution: '**/DevHomeAzureExtension.sln'
appxPackageDir: 'AppxPackages'
testOutputArtifactDir: 'TestResults'
Expand Down
64 changes: 3 additions & 61 deletions build/scripts/Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,63 +62,22 @@ $ErrorActionPreference = "Stop"
Try {
if (($BuildStep -ieq "all") -Or ($BuildStep -ieq "msix")) {
$buildRing = "Dev"
$newPackageName = $null
$newPackageDisplayName = $null
$newAppDisplayNameResource = $null
$newWidgetProviderDisplayName = $null
$appxmanifestPath = (Join-Path $env:Build_RootDirectory "src\AzureExtensionServer\Package-Dev.appxmanifest")

if ($AzureBuildingBranch -ieq "release") {
$buildRing = "Stable"
$newPackageName = "Microsoft.Windows.DevHomeAzureExtension"
$newPackageDisplayName = "Dev Home Azure Extension (Preview)"
$newAppDisplayNameResource = "ms-resource:AppDisplayNameStable"
$newWidgetProviderDisplayName = "ms-resource:WidgetProviderDisplayNameStable"
$appxmanifestPath = (Join-Path $env:Build_RootDirectory "src\AzureExtensionServer\Package.appxmanifest")
} elseif ($AzureBuildingBranch -ieq "staging") {
$buildRing = "Canary"
$newPackageName = "Microsoft.Windows.DevHomeAzureExtension.Canary"
$newPackageDisplayName = "Dev Home Azure Extension (Canary)"
$newAppDisplayNameResource = "ms-resource:AppDisplayNameCanary"
$newWidgetProviderDisplayName = "ms-resource:WidgetProviderDisplayNameCanary"
$appxmanifestPath = (Join-Path $env:Build_RootDirectory "src\AzureExtensionServer\Package-Can.appxmanifest")
}

[Reflection.Assembly]::LoadWithPartialName("System.Xml.Linq")
$xIdentity = [System.Xml.Linq.XName]::Get("{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Identity");
$xProperties = [System.Xml.Linq.XName]::Get("{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Properties");
$xDisplayName = [System.Xml.Linq.XName]::Get("{http://schemas.microsoft.com/appx/manifest/foundation/windows10}DisplayName");
$xApplications = [System.Xml.Linq.XName]::Get("{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Applications");
$xApplication = [System.Xml.Linq.XName]::Get("{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Application");
$uapVisualElements = [System.Xml.Linq.XName]::Get("{http://schemas.microsoft.com/appx/manifest/uap/windows10}VisualElements");
$xExtensions = [System.Xml.Linq.XName]::Get("{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Extensions");
$uapExtension = [System.Xml.Linq.XName]::Get("{http://schemas.microsoft.com/appx/manifest/uap/windows10/3}Extension");
$uapAppExtension = [System.Xml.Linq.XName]::Get("{http://schemas.microsoft.com/appx/manifest/uap/windows10/3}AppExtension");

# Update the appxmanifest
$appxmanifestPath = (Join-Path $env:Build_RootDirectory "src\AzureExtensionServer\Package.appxmanifest")
$appxmanifest = [System.Xml.Linq.XDocument]::Load($appxmanifestPath)
$appxmanifest.Root.Element($xIdentity).Attribute("Version").Value = $env:msix_version
if (-not ([string]::IsNullOrEmpty($newPackageName))) {
$appxmanifest.Root.Element($xIdentity).Attribute("Name").Value = $newPackageName
}
if (-not ([string]::IsNullOrEmpty($newPackageDisplayName))) {
$appxmanifest.Root.Element($xProperties).Element($xDisplayName).Value = $newPackageDisplayName
}
if (-not ([string]::IsNullOrEmpty($newAppDisplayNameResource))) {
$appxmanifest.Root.Element($xApplications).Element($xApplication).Element($uapVisualElements).Attribute("DisplayName").Value = $newAppDisplayNameResource
$extensions = $appxmanifest.Root.Element($xApplications).Element($xApplication).Element($xExtensions).Elements($uapExtension)
foreach ($extension in $extensions) {
if ($extension.Attribute("Category").Value -eq "windows.appExtension") {
$appExtension = $extension.Element($uapAppExtension)
switch ($appExtension.Attribute("Name").Value) {
"com.microsoft.devhome" {
$appExtension.Attribute("DisplayName").Value = $newAppDisplayNameResource
}
"com.microsoft.windows.widgets" {
$appExtension.Attribute("DisplayName").Value = $newWidgetProviderDisplayName
}
}
}
}
}
$appxmanifest.Save($appxmanifestPath)

foreach ($platform in $env:Build_Platform.Split(",")) {
Expand Down Expand Up @@ -148,23 +107,6 @@ Try {
# Reset the appxmanifest to prevent unnecessary code changes
$appxmanifest = [System.Xml.Linq.XDocument]::Load($appxmanifestPath)
$appxmanifest.Root.Element($xIdentity).Attribute("Version").Value = "0.0.0.0"
$appxmanifest.Root.Element($xIdentity).Attribute("Name").Value = "Microsoft.Windows.DevHomeAzureExtension.Dev"
$appxmanifest.Root.Element($xProperties).Element($xDisplayName).Value = "Dev Home Azure Extension (Dev)"
$appxmanifest.Root.Element($xApplications).Element($xApplication).Element($uapVisualElements).Attribute("DisplayName").Value = "ms-resource:AppDisplayNameDev"
$extensions = $appxmanifest.Root.Element($xApplications).Element($xApplication).Element($xExtensions).Elements($uapExtension)
foreach ($extension in $extensions) {
if ($extension.Attribute("Category").Value -eq "windows.appExtension") {
$appExtension = $extension.Element($uapAppExtension)
switch ($appExtension.Attribute("Name").Value) {
"com.microsoft.devhome" {
$appExtension.Attribute("DisplayName").Value = "ms-resource:AppDisplayNameDev"
}
"com.microsoft.windows.widgets" {
$appExtension.Attribute("DisplayName").Value = "ms-resource:WidgetProviderDisplayNameDev"
}
}
}
}
$appxmanifest.Save($appxmanifestPath)
}

Expand Down
2 changes: 1 addition & 1 deletion build/scripts/CreateBuildInfo.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Param(
)

$Major = "0"
$Minor = "11"
$Minor = "12"
$Patch = "99" # default to 99 for local builds

$versionSplit = $Version.Split(".");
Expand Down
2 changes: 1 addition & 1 deletion nuget.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</config>
<packageSources>
<clear />
<add key="DevHomeDependencies" value="https://pkgs.dev.azure.com/ms/DevHome/_packaging/DevHomeDependencies/nuget/v3/index.json" />
<add key="DevHomeDependencies" value="https://pkgs.dev.azure.com/shine-oss/DevHome/_packaging/DevHomeDependencies/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
Expand Down
6 changes: 6 additions & 0 deletions src/AzureExtension/AzureExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,13 @@
namespace DevHomeAzureExtension;

[ComVisible(true)]
#if CANARY_BUILD
[Guid("0F3605DE-92CF-4FE0-9BCD-A3519EA67D1B")]
#elif STABLE_BUILD
[Guid("182AF84F-D5E1-469C-9742-536EFEA94630")]
#else
[Guid("28A2AB40-26EA-48BF-A8BC-49FEC9B7C18C")]
#endif
[ComDefaultInterface(typeof(IExtension))]
public sealed class AzureExtension : IExtension
{
Expand Down
Loading

0 comments on commit ce908ad

Please sign in to comment.