ci(release-stable): drop blockmap requirement for win NSIS installer

electron-builder's NSIS target does not produce a `.blockmap` file
unless `differentialPackage: true` is configured (it is not in this
project). The release-stable lane was unconditionally requiring,
copying, and listing the blockmap, which made the win build job
fail even after the installer was successfully produced.

release-beta.yml already runs without expecting a blockmap, so
align release-stable.yml with it: drop the blockmap variables,
the existence check, the copy, and the summary mention. The win
NSIS installer + sha256 + latest.yml are produced unchanged and
match what release-beta has been shipping.
This commit is contained in:
lefarcen 2026-05-07 23:38:50 +08:00
parent 4c81a12016
commit c21cbc60e6

View file

@ -262,19 +262,13 @@ jobs:
New-Item -ItemType Directory -Force -Path $releaseDir | Out-Null
$sourceInstaller = Join-Path $env:RUNNER_TEMP "tools-pack/out/win/namespaces/release-stable-win/builder/Open Design-release-stable-win-setup.exe"
$sourceBlockmap = Join-Path $env:RUNNER_TEMP "tools-pack/out/win/namespaces/release-stable-win/builder/Open Design-release-stable-win-setup.exe.blockmap"
if (!(Test-Path $sourceInstaller)) {
throw "expected installer not found at $sourceInstaller"
}
if (!(Test-Path $sourceBlockmap)) {
throw "expected blockmap not found at $sourceBlockmap"
}
$versionedInstaller = "open-design-${{ needs.metadata.outputs.stable_version }}-win-x64-setup.exe"
$versionedBlockmap = "open-design-${{ needs.metadata.outputs.stable_version }}-win-x64-setup.exe.blockmap"
$checksumFile = "$versionedInstaller.sha256"
Copy-Item $sourceInstaller (Join-Path $releaseDir $versionedInstaller)
Copy-Item $sourceBlockmap (Join-Path $releaseDir $versionedBlockmap)
$installerPath = Join-Path $releaseDir $versionedInstaller
$hash = (Get-FileHash -Path $installerPath -Algorithm SHA256).Hash.ToLowerInvariant()
@ -485,7 +479,7 @@ jobs:
echo "- mac signed/notarized: ${{ inputs.mac_signed }}"
echo "- windows signed: false"
echo "- mac assets: open-design-${{ needs.metadata.outputs.stable_version }}-mac-arm64.dmg, open-design-${{ needs.metadata.outputs.stable_version }}-mac-arm64.zip"
echo "- win assets: open-design-${{ needs.metadata.outputs.stable_version }}-win-x64-setup.exe, open-design-${{ needs.metadata.outputs.stable_version }}-win-x64-setup.exe.blockmap"
echo "- win assets: open-design-${{ needs.metadata.outputs.stable_version }}-win-x64-setup.exe"
echo "- linux assets: deferred from this stable release"
echo "- Feeds: latest-mac.yml, latest.yml"
} >> "$GITHUB_STEP_SUMMARY"