mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 01:34:19 +08:00
Add Preview assets for msix (#9375)
This commit is contained in:
parent
fd1d3cef91
commit
3e1f630695
BIN
assets/Square150x150Logo-Preview.png
Normal file
BIN
assets/Square150x150Logo-Preview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
BIN
assets/Square44x44Logo-Preview.png
Normal file
BIN
assets/Square44x44Logo-Preview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
assets/Square44x44Logo.targetsize-48-Preview.png
Normal file
BIN
assets/Square44x44Logo.targetsize-48-Preview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
assets/StoreLogo-Preview.png
Normal file
BIN
assets/StoreLogo-Preview.png
Normal file
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?")) {
|
||||
|
Loading…
Reference in New Issue
Block a user