Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tools/install-powershell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,8 @@ try {
}

# Edit icon to disambiguate daily builds.
if ($IsWinEnv -and $Daily.IsPresent) {
$icoPath = "$Destination\assets\PowerShell_avatar.ico"
if ($IsWinEnv -and $Daily.IsPresent -and (Test-Path -Path $icoPath)) {
if (-not (Test-Path "~/.rcedit/rcedit-x64.exe")) {
Write-Verbose "Install RCEdit for modifying exe resources" -Verbose
$rceditUrl = "https://github.com/electron/rcedit/releases/download/v1.0.0/rcedit-x64.exe"
Expand All @@ -431,7 +432,7 @@ try {
}

Write-Verbose "Change icon to disambiguate it from a released installation" -Verbose
& "~/.rcedit/rcedit-x64.exe" "$Destination\pwsh.exe" --set-icon "$Destination\assets\Powershell_avatar.ico"
& "~/.rcedit/rcedit-x64.exe" "$Destination\pwsh.exe" --set-icon $icoPath
}

## Change the mode of 'pwsh' to 'rwxr-xr-x' to allow execution
Expand Down