open-design/.github
lefarcen 2ea4fcf981
fix(pack): stop release builds depending on node_modules Electron dist (#3289)
Nightly/stable mac arm64 and win x64 packaging failed on release/v0.9.0:

- mac arm64: the "Verify mac Electron framework symlinks" step exited 1
  because node_modules' electron dist had no
  `Electron Framework.framework`.
- win x64: electron-builder failed renaming `electron.exe` ->
  `Open Design.exe` with ENOENT because `electron.exe` was missing from
  the same dist.

Root cause: pnpm does not reliably materialize Electron's prebuilt dist
(a symlinked `.framework` on mac, the unpacked binaries on win) under
`node_modules/.pnpm/electron@*/.../dist` on the CI runners. Both failing
runs were cache-cold (the win job logged "Cache not found"), and the
beta workflow's non-fatal inspect step shows the identical missing
framework on a green run — so it is not a GHA-cache or download-speed
problem, and it is not reproducible locally.

The mac builder never passed `electronDist` and has stayed green because
electron-builder downloads its own Electron (~1s for 116 MB on CI). The
win and linux builders pinned `electronDist` at the fragile node_modules
dist, and stable/preview still ran the old fatal verify step (beta was
already relaxed to a non-fatal inspect).

This change aligns every platform with the mac approach:

- win/linux: drop `electronDist` so electron-builder downloads its own
  complete Electron for the target platform.
- release-stable.yml / release-preview.yml: replace the fatal "Verify
  mac Electron framework symlinks" step with the non-fatal "Inspect"
  step already used by release-beta.yml (electron-builder is the source
  of truth for whether packaging works).

Validated: tools-pack typecheck, guard, and the win/linux/win-app/
workspace-build pack test suites all pass. Real win/linux packaging is
validated by the release workflow itself.
2026-05-29 16:44:55 +08:00
..
actions fix(ci): narrow workflow scope and reuse setup steps (#2708) 2026-05-22 18:58:53 +08:00
ISSUE_TEMPLATE refactor(issue-template): separate logs and screenshots fields in bug report (#3032) 2026-05-27 04:41:28 +00:00
screenshots feat(ui): add copy to clipboard functionality for user messages with … (#1669) 2026-05-14 20:19:20 +08:00
scripts ci(agent-pr-explore): rewrite prompt — non-lazy disposition + mandatory probe list (#3156) 2026-05-28 09:51:19 +00:00
workflows fix(pack): stop release builds depending on node_modules Electron dist (#3289) 2026-05-29 16:44:55 +08:00
actionlint.yaml Add release-beta-s self-hosted workflow placeholder (#3150) 2026-05-28 03:44:52 +00:00
pull_request_template.md docs(pr): require user-perspective description and surface area (#1520) 2026-05-13 15:28:05 +08:00