diff --git a/docs/releasing.md b/docs/releasing.md index 081c72c..71c0aa1 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -52,10 +52,10 @@ publish or create a GitHub Release. ## Package icon -The package embeds `assets/chessrealms-emblem-128.png` as -`chessrealms-emblem-128.png` and references it through `PackageIcon`. This is the -unchanged 128x128 PNG emblem with transparent corners from the -[ChessRealms organization assets](https://github.com/ChessRealms/.github/blob/83657d5120b3ae8c0d2acdb5af59c2c079e7c518/profile/assets/png/chessrealms-emblem-128.png). +The package embeds `assets/chessrealms-avatar-128.png` as +`chessrealms-avatar-128.png` and references it through `PackageIcon`. This is the +unchanged 128x128 PNG avatar with transparent corners from the +[ChessRealms organization assets](https://github.com/ChessRealms/.github/blob/83657d5120b3ae8c0d2acdb5af59c2c079e7c518/profile/assets/png/chessrealms-avatar-128.png). The local copy makes package builds independent of the branding repository's availability. `Verify-Package.ps1` checks both the icon metadata and its presence in the package. Keep those checks in sync if the filename changes. diff --git a/scripts/Verify-Package.ps1 b/scripts/Verify-Package.ps1 index 53a8e55..16cd61e 100644 --- a/scripts/Verify-Package.ps1 +++ b/scripts/Verify-Package.ps1 @@ -127,7 +127,7 @@ Assert-Equal "Package description" (Get-MetadataValue $package.Nuspec "descripti Assert-Equal "Package authors" (Get-MetadataValue $package.Nuspec "authors") "ChessRealms" Assert-Equal "Package project URL" (Get-MetadataValue $package.Nuspec "projectUrl") "https://github.com/ChessRealms/Engine" Assert-Equal "Package README" (Get-MetadataValue $package.Nuspec "readme") "README.md" -Assert-Equal "Package icon" (Get-MetadataValue $package.Nuspec "icon") "chessrealms-emblem-128.png" +Assert-Equal "Package icon" (Get-MetadataValue $package.Nuspec "icon") "chessrealms-avatar-128.png" $license = $package.Nuspec.SelectSingleNode("/*[local-name()='package']/*[local-name()='metadata']/*[local-name()='license']") if ($null -eq $license -or $license.GetAttribute("type") -cne "expression" -or $license.InnerText -cne "MIT") {