mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 01:34:19 +08:00
Add preview icon to macOS launcher (#7448)
This commit is contained in:
parent
fbfbb4f005
commit
f0ea0d380f
BIN
assets/Powershell-preview.icns
Normal file
BIN
assets/Powershell-preview.icns
Normal file
Binary file not shown.
@ -1185,7 +1185,14 @@ function New-MacOSLauncher
|
||||
New-Item -Force -ItemType Directory -Path "$macosapp/Contents/Resources" | Out-Null
|
||||
|
||||
# Define icns file information.
|
||||
$iconfile = "$PSScriptRoot/../../assets/Powershell.icns"
|
||||
if ($IsPreview)
|
||||
{
|
||||
$iconfile = "$PSScriptRoot/../../assets/Powershell-preview.icns"
|
||||
}
|
||||
else
|
||||
{
|
||||
$iconfile = "$PSScriptRoot/../../assets/Powershell.icns"
|
||||
}
|
||||
$iconfilebase = (Get-Item -Path $iconfile).BaseName
|
||||
|
||||
# Copy icns file.
|
||||
|
Loading…
Reference in New Issue
Block a user