Add preview icon to macOS launcher (#7448)

This commit is contained in:
Greg Zimmerman 2018-08-05 14:00:39 -04:00 committed by Travis Plunk
parent fbfbb4f005
commit f0ea0d380f
2 changed files with 8 additions and 1 deletions

Binary file not shown.

View File

@ -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.