-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f9af3da
move rcedit step to build rather than packaging so it doesn't overwri…
SteveL-MSFT b90e194
address PR feedback
SteveL-MSFT 699245a
remove beginning v from releasetag
SteveL-MSFT 4b58cc6
updated to use $ReleaseTagToUse
SteveL-MSFT a767477
have consistent bracing style (for the code I added and one nearby I …
SteveL-MSFT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -558,6 +558,20 @@ Fix steps: | |
} | ||
} | ||
|
||
if ($Environment.IsWindows) { | ||
## need RCEdit to modify the binaries embedded resources | ||
if (-not (Test-Path "~/.rcedit/rcedit-x64.exe")) | ||
{ | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more. Please use |
||
|
||
Start-NativeExecution { & "~/.rcedit/rcedit-x64.exe" "$($Options.Output)" --set-icon "$PSScriptRoot\assets\Powershell_black.ico" ` | ||
--set-file-version $ProductVersion --set-product-version $ProductVersion --set-version-string "ProductName" "PowerShell Core 6" ` | ||
--set-requested-execution-level "asInvoker" --set-version-string "LegalCopyright" "(C) Microsoft Corporation. All Rights Reserved." } | Write-Verbose | ||
} | ||
|
||
# download modules from powershell gallery. | ||
# - PowerShellGet, PackageManagement, Microsoft.PowerShell.Archive | ||
if($PSModuleRestore) | ||
|
@@ -1899,16 +1913,6 @@ function New-MSIPackage | |
[Switch] $Force | ||
) | ||
|
||
## need RCEdit to modify the binaries embedded resources | ||
if (-not (Test-Path "~/.rcedit/rcedit-x64.exe")) | ||
{ | ||
throw "RCEdit is required to modify pwsh.exe resources, please run 'Start-PSBootStrap' to install" | ||
} | ||
|
||
Start-NativeExecution { & "~/.rcedit/rcedit-x64.exe" (Get-PSOutput) --set-icon "$AssetsPath\Powershell_black.ico" ` | ||
--set-file-version $ProductVersion --set-product-version $ProductVersion --set-version-string "ProductName" "PowerShell Core 6" ` | ||
--set-requested-execution-level "asInvoker" --set-version-string "LegalCopyright" "(C) Microsoft Corporation. All Rights Reserved." } | Write-Verbose | ||
|
||
## AppVeyor base image might update the version for Wix. Hence, we should | ||
## not hard code version numbers. | ||
$wixToolsetBinPath = "${env:ProgramFiles(x86)}\WiX Toolset *\bin" | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.