mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add Preview assets for msix (#9375)
This commit is contained in:
committed by
Aditya Patwardhan
parent
fd1d3cef91
commit
3e1f630695
Binary file not shown.
|
After Width: | Height: | Size: 8.6 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
@@ -2811,19 +2811,30 @@ function New-MSIXPackage
|
||||
Set-Content -Path "$ProductSourcePath\AppxManifest.xml" -Value $appxManifest -Force
|
||||
# Necessary image assets need to be in source assets folder
|
||||
$assets = @(
|
||||
'Square150x150Logo.png'
|
||||
'Square44x44Logo.png'
|
||||
'Square44x44Logo.targetsize-48.png'
|
||||
'Square44x44Logo.targetsize-48_altform-unplated.png'
|
||||
'StoreLogo.png'
|
||||
'Square150x150Logo'
|
||||
'Square44x44Logo'
|
||||
'Square44x44Logo.targetsize-48'
|
||||
'Square44x44Logo.targetsize-48_altform-unplated'
|
||||
'StoreLogo'
|
||||
)
|
||||
|
||||
if (!(Test-Path "$ProductSourcePath\assets")) {
|
||||
$null = New-Item -ItemType Directory -Path "$ProductSourcePath\assets"
|
||||
}
|
||||
|
||||
$isPreview = Test-IsPreview -Version $ProductSemanticVersion
|
||||
if ($isPreview) {
|
||||
Write-Verbose "Using Preview assets" -Verbose
|
||||
}
|
||||
|
||||
$assets | ForEach-Object {
|
||||
Copy-Item -Path "$RepoRoot\assets\$_" -Destination "$ProductSourcePath\assets\"
|
||||
if ($isPreview) {
|
||||
Copy-Item -Path "$RepoRoot\assets\$_-Preview.png" -Destination "$ProductSourcePath\assets\$_.png"
|
||||
}
|
||||
else {
|
||||
Copy-Item -Path "$RepoRoot\assets\$_.png" -Destination "$ProductSourcePath\assets\"
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ($PSCmdlet.ShouldProcess("Create .msix package?")) {
|
||||
|
||||
Reference in New Issue
Block a user