Support issue-linked demo source changes
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good

This commit is contained in:
2026-11-27 20:42:33 -05:00
parent b6f7edd48b
commit c4ca770ee4
17 changed files with 934 additions and 48 deletions
+9 -4
View File
@@ -16,7 +16,8 @@ $repository = (Resolve-Path (Join-Path $PSScriptRoot '../..')).Path
if ($DeliveryVersion -notmatch '^\d+\.\d+\.\d+$') { throw 'Use major.minor.changelist' }
Push-Location $repository
try {
& $PythonExecutable demo/ci/verify-snapshot.py
$sourceVerification = (& $PythonExecutable demo/ci/verify-snapshot.py) -join "`n" | ConvertFrom-Json
$sourceVerification | ConvertTo-Json -Depth 12 | Write-Output
$output = (New-Item -ItemType Directory -Force $OutputDirectory).FullName
$build = if ($BuildDirectory) { [IO.Path]::GetFullPath($BuildDirectory) } else { Join-Path $output 'build' }
$package = Join-Path $output "TikZRefinery-windows-$DeliveryVersion"
@@ -39,17 +40,21 @@ try {
Copy-Item "$QtKit/plugins/platforms/qoffscreen.dll" "$package/platforms"
Copy-Item "$build/build-info.json" $package
Copy-Item demo/snapshot.json "$package/upstream-snapshot.json"
if ($null -ne $sourceVerification.source_change_record) {
Copy-Item demo/source-change.json "$package/source-change.json"
}
Copy-Item demo/tikzrefinery/code/examples "$package/examples" -Recurse
$downstream = (& git rev-parse HEAD).Trim()
$state = (& git status --porcelain --untracked-files=normal) -join "`n"
[ordered]@{
delivery_version = $DeliveryVersion
upstream_commit = 'f4e3193d49a98efcf2f16c2aa22d6085ebe70f36'
application_baseline = '0.1.4-alpha'
upstream_commit = $sourceVerification.upstream_commit
application_baseline = $sourceVerification.application_baseline
source_verification = $sourceVerification
downstream_commit = $downstream
downstream_modified = [bool]$state
execution = 'Windows command-line rehearsal; not a Jenkins run'
} | ConvertTo-Json | Set-Content "$package/delivery-info.json" -Encoding utf8
} | ConvertTo-Json -Depth 12 | Set-Content "$package/delivery-info.json" -Encoding utf8
& $PythonExecutable demo/ci/verify-snapshot.py
Compress-Archive -LiteralPath $package -DestinationPath "$package.zip"
Get-FileHash "$package.zip" -Algorithm SHA256 | Format-List