Reject native verification parse errors before launch and fix split dispatch branch
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user