Skip to content
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

Change how we build the cross-OS DAC to support building in the VMR #111927

Merged
merged 11 commits into from
Feb 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Force the value of SignRequestFiles to always be an array
  • Loading branch information
jkoritzinsky committed Feb 3, 2025
commit accde7616ea234242a69ffd0bf573ae9a7ddd8af
6 changes: 4 additions & 2 deletions eng/native/sign-with-dac-certificate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ param(
[Parameter(ValueFromRemainingArguments=$true)][string[]]$filesToSign
)

$inputFile = Get-Content -Raw $PSScriptRoot/signing/input.template.json | ConvertFrom-Json
$inputFile.SignBatches[0].SignRequestFiles = $filesToSign | ForEach-Object {
[array]$signEntries = $filesToSign | ForEach-Object {
@{
SourceLocation = $_
}
}

$inputFile = Get-Content -Raw $PSScriptRoot/signing/input.template.json | ConvertFrom-Json
$inputFile.SignBatches[0].SignRequestFiles = $signEntries

$inputJson = [System.IO.Path]::GetTempFileName()
# Our JSON goes up to 6 levels deep, so we need to set the depth to 6
# to successfully round-trip our JSON through ConvertTo-Json
Expand Down