mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Remove rcedit dependency, move daily ico dependency to props file (#13123)
This commit is contained in:
@@ -63,7 +63,8 @@
|
||||
<PackageVersion>$(PSCoreBuildVersion)</PackageVersion>
|
||||
|
||||
<ApplicationIcon Condition="$(ProductVersion.Contains('preview'))">..\..\assets\Powershell_av_colors.ico</ApplicationIcon>
|
||||
<ApplicationIcon Condition="!$(ProductVersion.Contains('preview'))">..\..\assets\Powershell_black.ico</ApplicationIcon>
|
||||
<ApplicationIcon Condition="$(ProductVersion.Contains('daily'))">..\..\assets\Powershell_avatar.ico</ApplicationIcon>
|
||||
<ApplicationIcon Condition="!$(ProductVersion.Contains('preview')) And !$(ProductVersion.Contains('daily'))">..\..\assets\Powershell_black.ico</ApplicationIcon>
|
||||
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
@@ -429,19 +429,6 @@ try {
|
||||
}
|
||||
}
|
||||
|
||||
# Edit icon to disambiguate daily builds.
|
||||
if ($IsWinEnv -and $Daily.IsPresent) {
|
||||
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"
|
||||
$null = New-Item -Path "~/.rcedit" -Type Directory -Force -ErrorAction SilentlyContinue
|
||||
Invoke-WebRequest -OutFile "~/.rcedit/rcedit-x64.exe" -Uri $rceditUrl
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
## Change the mode of 'pwsh' to 'rwxr-xr-x' to allow execution
|
||||
if (-not $IsWinEnv) { chmod 755 $Destination/pwsh }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user