XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESystem

【Rust】XFE系统,基于Rust和汇编

公开
关注 0 Fork 0 Star 0
UTF-8
param(
    [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') -ImagePath $ImagePath -VerifiedBootResult $BootResult -VerifiedHostResult $HostResult -Version $Name