param(
[ValidateSet('Desktop','Console')][string]$Edition='Desktop',
[Parameter(Mandatory = $true)][string]$ImagePath,
[Parameter(Mandatory = $true)][string]$BootResult,
[Parameter(Mandatory = $true)][string]$HostResult,
[string]$ReportPath,
[string]$Name = ('XFESystem-CSharp-Preview-' + [DateTimeOffset]::UtcNow.ToUnixTimeMilliseconds())
)
$ErrorActionPreference = 'Stop'
$receipt=Get-Content -LiteralPath $BootResult -Raw -Encoding UTF8 | ConvertFrom-Json
if($receipt.Kind -cne 'XfeIndependentKernelBootProof') {
throw 'New packages require independent-kernel host and guest acceptance. Historical packages remain unchanged.'
}
if($ReportPath) { throw 'Independent kernel packages use their source-bound host and guest receipts.' }
& (Join-Path $PSScriptRoot 'IndependentKernel/Package.ps1') -Edition $Edition -ImagePath $ImagePath -VerifiedBootResult $BootResult -VerifiedHostResult $HostResult -Version $Name
param(
[ValidateSet('Desktop','Console')][string]$Edition='Desktop',
[Parameter(Mandatory = $true)][string]$ImagePath,
[Parameter(Mandatory = $true)][string]$BootResult,
[Parameter(Mandatory = $true)][string]$HostResult,
[string]$ReportPath,
[string]$Name = ('XFESystem-CSharp-Preview-' + [DateTimeOffset]::UtcNow.ToUnixTimeMilliseconds())
)
$ErrorActionPreference = 'Stop'
$receipt=Get-Content -LiteralPath $BootResult -Raw -Encoding UTF8 | ConvertFrom-Json
if($receipt.Kind -cne 'XfeIndependentKernelBootProof') {
throw 'New packages require independent-kernel host and guest acceptance. Historical packages remain unchanged.'
}
if($ReportPath) { throw 'Independent kernel packages use their source-bound host and guest receipts.' }
& (Join-Path $PSScriptRoot 'IndependentKernel/Package.ps1') -Edition $Edition -ImagePath $ImagePath -VerifiedBootResult $BootResult -VerifiedHostResult $HostResult -Version $Name