Repository navigation
Disambiguate icon for daily builds on Windows - #5467
Conversation
Some code had to be borrowed from build.psm1 because this script has to be self contained in case it gets executed by only downloading this file via the published download link https://twitter.com/Steve_MSFT/status/930585082451992576 Tested on Windows 10.0.16299
Dongbo Wang (daxian-dbw)
left a comment
There was a problem hiding this comment.
Thanks for the improvement! I left a few comments.
| } | ||
|
|
||
| # Edit icon to disambiguate daily builds. | ||
| if ($IsWinEnv -and $Daily.IsPresent) { |
There was a problem hiding this comment.
Can you please move this section up to before the line of if (-not $IsWinEnv) { chmod 755 $Destination/pwsh }? In this way, all manipulations of the executable are grouped together :)
There was a problem hiding this comment.
Ok. Done.
| # 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" |
There was a problem hiding this comment.
Can you please add -Verbose? We use write-verbose -verbose in this file as a way to log useful messages to users. This is a useful message for users to see.
There was a problem hiding this comment.
Ok. Done.
| Invoke-WebRequest -OutFile "~/.rcedit/rcedit-x64.exe" -Uri $rceditUrl | ||
| } | ||
|
|
||
| Write-Verbose "Change icon to disambiguate it from a released installation" |
There was a problem hiding this comment.
Same here. Please add -Verbose.
There was a problem hiding this comment.
Done as well now.
…s together. Re-tested that it still works (WMF 5.1, Win10 Fall Creators Update)
|
Steve Lee (@SteveL-MSFT) Can you please take a look? |
* Disambiguate icon for daily builds on Windows. Some code had to be borrowed from build.psm1 because this script has to be self contained in case it gets executed by only downloading this file via the published download link https://twitter.com/Steve_MSFT/status/930585082451992576
* Disambiguate icon for daily builds on Windows. Some code had to be borrowed from build.psm1 because this script has to be self contained in case it gets executed by only downloading this file via the published download link https://twitter.com/Steve_MSFT/status/930585082451992576
* Disambiguate icon for daily builds on Windows. Some code had to be borrowed from build.psm1 because this script has to be self contained in case it gets executed by only downloading this file via the published download link https://twitter.com/Steve_MSFT/status/930585082451992576
* Disambiguate icon for daily builds on Windows. Some code had to be borrowed from build.psm1 because this script has to be self contained in case it gets executed by only downloading this file via the published download link https://twitter.com/Steve_MSFT/status/930585082451992576
Change icon of
pwsh.exefor daily builds on Windows to this icon.Some code had to be borrowed from build.psm1 because this script has to be self contained in case it gets executed by only downloading this file via the published download link here.
Tested on Windows 10.0.16299 (Fall Creators Update) with WMF 5.1