-
Notifications
You must be signed in to change notification settings - Fork 7.7k
move rcedit step to build rather than packaging #5404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
build.psm1
Outdated
throw "RCEdit is required to modify pwsh.exe resources, please run 'Start-PSBootStrap' to install" | ||
} | ||
|
||
$ProductVersion = (git --git-dir="$PSScriptRoot/.git" describe) -Replace '^v' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use release tag parameter to get version if it was passed it. This is needed for release builds.
build.psm1
Outdated
throw "RCEdit is required to modify pwsh.exe resources, please run 'Start-PSBootStrap' to install" | ||
} | ||
|
||
$ProductVersion = (git --git-dir="$PSScriptRoot/.git" describe) -Replace '^v' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use Get-PSCommitId
instead of rewriting this code git --git-dir="$PSScriptRoot/.git" describe
build.psm1
Outdated
$ProductVersion = (git --git-dir="$PSScriptRoot/.git" describe) -Replace '^v' | ||
if (!$ReleaseTag) | ||
{ | ||
$ReleaseTag = Get-PSCommitId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you still need to remove the v at the beginning.
Get-PSVersion will do that for you, but I don't have a function to do this for the releasetag.
build.psm1
Outdated
$ReleaseVersion = "" | ||
if ($ReleaseTag) | ||
{ | ||
$ReleaseVersion = $ReleaseTag -replace '^v' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ReleaseTagToUse should already be this value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Minor but worth pointing out: The bracing style for if statements is inconsistent. |
@bergmeister I think that's a fair point. Will update for the code I added. |
The macOS CI was canceled by Travis-CI ... |
@TravisEz13 note that even the step is moved to build phase, it's the |
Fix #5403