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

XFEEDToolBox

【WinUI】XFE精英危险工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
[CmdletBinding()]
param([switch]$SkipPlatform)
$ErrorActionPreference='Stop'
$taskRoot=Split-Path -Parent $PSScriptRoot
$hashMatch=[regex]::Match((Get-Content -LiteralPath (Join-Path $taskRoot 'native/ManagedPlugin/Platform.cs') -Raw),'const string GameHash = "([a-f0-9]{64})";')
if(-not $hashMatch.Success){throw 'Verified managed game hash is missing.'}
& (Join-Path $PSScriptRoot 'Build-ManagedPlugin.ps1') -Flavor Interaction -OutputDirectory 'artifacts/interaction-native-build' -SkipPlatform:$SkipPlatform
$dll=Join-Path $taskRoot 'artifacts/interaction-native-build/XFEEDInteraction.dll'
$package=Join-Path $taskRoot 'artifacts/interaction-native-build'
# Diagnostic exports stay under artifacts; the app embeds project outputs.
[ordered]@{schema=1;name='XFEEDToolBox.Interaction';file='XFEEDInteraction.dll';sha256=(Get-FileHash -LiteralPath $dll -Algorithm SHA256).Hash.ToLowerInvariant();gameSha256=$hashMatch.Groups[1].Value} | ConvertTo-Json | Set-Content -LiteralPath (Join-Path $package 'interaction.json') -Encoding utf8