mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add preview icon to macOS launcher (#7448)
This commit is contained in:
committed by
Travis Plunk
parent
fbfbb4f005
commit
f0ea0d380f
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.
|
||||
|
||||
Reference in New Issue
Block a user