Reject native verification parse errors before launch and fix split dispatch branch

This commit is contained in:
NINI
2026-10-07 00:20:48 +09:00
parent d3b2ede09d
commit 913f19c360
3 changed files with 14 additions and 1 deletions
+2
View File
@@ -7,6 +7,8 @@ $record=[ordered]@{milestone='Final';sourceCommit=(& git rev-parse HEAD);sourceD
function Check([string]$Id,[bool]$Passed,[string]$Actual){$checks.Add(@{id=$Id;passed=$Passed;actual=$Actual});if(!$Passed){throw "Final check failed: $Id ($Actual)"}}
try {
Check 'clean-frozen-source' (!$record.sourceDirty) $record.sourceCommit
& pwsh -NoProfile -File (Join-Path $PSScriptRoot 'test-final-syntax.ps1') -EvidenceDir (Join-Path $EvidenceDir 'ScriptSyntax')
Check 'native-script-parser-clean' ($LASTEXITCODE-eq0) 'All Android verification PowerShell files parsed without errors before native launch'
$build=Get-Content -LiteralPath (Join-Path $EvidenceDir 'androidbuild-evidence.json') -Raw|ConvertFrom-Json
Check 'exact-final-build' ($build.status-eq'passed'-and$build.exitCode-eq0-and!$build.sourceDirty-and!$build.sourceDirtyEnd-and$build.sourceCommit-eq$record.sourceCommit-and$build.sourceCommitEnd-eq$record.sourceCommit-and$build.apkSha256-eq$record.apkSha256) $record.apkSha256
$standard=Join-Path $projectRoot 'artifacts/android/MagnetismHeroes.apk'