Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Disambiguate icon for daily builds on Windows#5467

Merged
iSazonov merged 4 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
bergmeister:icon_daily_buildbergmeister/PowerShell:icon_daily_buildCopy head branch name to clipboard
Nov 22, 2017
Merged

Disambiguate icon for daily builds on Windows#5467
iSazonov merged 4 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
bergmeister:icon_daily_buildbergmeister/PowerShell:icon_daily_buildCopy head branch name to clipboard

Conversation

@bergmeister

@bergmeister bergmeister commented Nov 15, 2017

Copy link
Copy Markdown
Contributor

Change icon of pwsh.exe for 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

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

@daxian-dbw daxian-dbw left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement! I left a few comments.

Comment thread tools/install-powershell.ps1 Outdated
}

# Edit icon to disambiguate daily builds.
if ($IsWinEnv -and $Daily.IsPresent) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 :)

@bergmeister bergmeister Nov 16, 2017

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Done.

Comment thread tools/install-powershell.ps1 Outdated
# 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"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. Done.

Comment thread tools/install-powershell.ps1 Outdated
Invoke-WebRequest -OutFile "~/.rcedit/rcedit-x64.exe" -Uri $rceditUrl
}

Write-Verbose "Change icon to disambiguate it from a released installation"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. Please add -Verbose.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done as well now.

@daxian-dbw

Copy link
Copy Markdown
Member

@SteveL-MSFT Can you please take a look?

@SteveL-MSFT SteveL-MSFT left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iSazonov iSazonov self-assigned this Nov 22, 2017
@iSazonov iSazonov merged commit 71e588d into PowerShell:master Nov 22, 2017
@TravisEz13 TravisEz13 added this to the 6.0.0-GA milestone Nov 29, 2017
TravisEz13 pushed a commit to TravisEz13/PowerShell that referenced this pull request Nov 29, 2017
* 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
TravisEz13 pushed a commit that referenced this pull request Nov 29, 2017
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.