Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions scripts/build_msix.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,13 @@ New-Item -ItemType Directory -Path $stageRoot | Out-Null
Copy-Item -Path (Join-Path $appDist "*") -Destination $stageRoot -Recurse -Force

Write-Host "==> Generate MSIX assets"
$logoSource = Join-Path $repoRoot "ui\assets\icons\logo_mark.png"
if (-not (Test-Path -LiteralPath $logoSource)) {
throw "Logo source missing: $logoSource"
$logoCandidates = @(
(Join-Path $repoRoot "ui\assets\icons\logo_mark.png"),
(Join-Path $repoRoot "ui\assets\icons\logo.png")
)
$logoSource = $logoCandidates | Where-Object { Test-Path -LiteralPath $_ } | Select-Object -First 1
if (-not $logoSource) {
throw "Logo source missing. Tried: $($logoCandidates -join ', ')"
}
Resize-Png -Source $logoSource -Target (Join-Path $assetsRoot "StoreLogo.png") -Width 50 -Height 50
Resize-Png -Source $logoSource -Target (Join-Path $assetsRoot "Square44x44Logo.png") -Width 44 -Height 44
Expand Down