mirror of
https://github.com/nexu-io/open-design.git
synced 2026-05-31 19:04:39 +07:00
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:
parent
4c81a12016
commit
c21cbc60e6
1 changed files with 1 additions and 7 deletions
8
.github/workflows/release-stable.yml
vendored
8
.github/workflows/release-stable.yml
vendored
|
|
@ -262,19 +262,13 @@ jobs:
|
||||||
New-Item -ItemType Directory -Force -Path $releaseDir | Out-Null
|
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"
|
$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)) {
|
if (!(Test-Path $sourceInstaller)) {
|
||||||
throw "expected installer not found at $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"
|
$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"
|
$checksumFile = "$versionedInstaller.sha256"
|
||||||
Copy-Item $sourceInstaller (Join-Path $releaseDir $versionedInstaller)
|
Copy-Item $sourceInstaller (Join-Path $releaseDir $versionedInstaller)
|
||||||
Copy-Item $sourceBlockmap (Join-Path $releaseDir $versionedBlockmap)
|
|
||||||
|
|
||||||
$installerPath = Join-Path $releaseDir $versionedInstaller
|
$installerPath = Join-Path $releaseDir $versionedInstaller
|
||||||
$hash = (Get-FileHash -Path $installerPath -Algorithm SHA256).Hash.ToLowerInvariant()
|
$hash = (Get-FileHash -Path $installerPath -Algorithm SHA256).Hash.ToLowerInvariant()
|
||||||
|
|
@ -485,7 +479,7 @@ jobs:
|
||||||
echo "- mac signed/notarized: ${{ inputs.mac_signed }}"
|
echo "- mac signed/notarized: ${{ inputs.mac_signed }}"
|
||||||
echo "- windows signed: false"
|
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 "- 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 "- linux assets: deferred from this stable release"
|
||||||
echo "- Feeds: latest-mac.yml, latest.yml"
|
echo "- Feeds: latest-mac.yml, latest.yml"
|
||||||
} >> "$GITHUB_STEP_SUMMARY"
|
} >> "$GITHUB_STEP_SUMMARY"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue