Skip to content

Pack, sign and publish with electron-builder 26 - #383

Merged
jtklein-agents merged 6 commits into
spec/370-electron-build-and-runtime-packages-currentfrom
371-pack-sign-and-publish-with-electron-builder-26
Nov 25, 2026
Merged

jtklein-agents merged 6 commits into
spec/370-electron-build-and-runtime-packages-currentfrom
371-pack-sign-and-publish-with-electron-builder-26

Conversation

@jtklein-agents

Copy link
Copy Markdown
Owner

Closes #371

Summary

 devDependencies
-  "electron-builder": "^24.13.3",
+  "electron-builder": "^26.18.1",

The build block is unchanged. ^26.18.1 cannot resolve to 26.15.0–26.15.3.

Evidence

Same commit, built locally on macOS with 24.13.3 and with 26.18.1 (electron-builder --mac -c.mac.identity=- -p never).

Check 24 26
Artifacts raxmlGUI-2.0.19-universal.dmg, -universal-mac.zip, both .blockmap, latest-mac.yml same names
zip / dmg size 239.0 / 246.9 MB 235.9 / 243.5 MB
latest-mac.yml fields version, files[url,sha512,size], path, sha512, releaseDate same, and same as the v2.0.18 release asset
static/bin + example files 17 files same 17 files
app.asar out/ + package.json — identical
codesign --verify --deep --strict (unzipped zip) not signed (24 has no ad-hoc) valid on disk, satisfies its Designated Requirement
postinstall-deps (install-app-deps) runs runs (electron-builder version=26.18.1)
Unsigned packaged app launch starts, checks for update starts, checks for update

Differences:

  • app.asar node_modules: 26's module collector hoists differently: the same packages, with nested copies moved to the top level.
    • Dropped: ajv@6, uri-js, punycode, fast-json-stable-stringify. No runtime package depends on them; conf still gets ajv@8.17.1 and ajv-formats@2.1.1.
    • Added: @types/parse-json, @types/prop-types, @types/react-transition-group (type-only).
  • Contents/Resources: 26 adds LICENSE.electron.txt and LICENSES.chromium.html.

Checks on macOS:

yarn lint        ✓  (ESLINT_USE_FLAT_CONFIG=false; this base has no eslint.config.js)
yarn typecheck   ✓
yarn test        ✓
yarn test:e2e    ✓  4 passed

Ubuntu and Windows are left to CI. This base has no yarn verify script.

Merge Danger

Door: two-way

Reverting is one line plus the lockfile.

Blast Radius: releases

  • Signing and notarization were not run with the Developer ID certificate. The first CI build on macos-15 is the real test.
  • An ad-hoc-signed build with hardened runtime fails macOS library validation at launch. That only applies to local ad-hoc builds; Developer ID signing is unaffected.
  • 26 has its own notarization step, which runs only when APPLE_ID, APPLE_APP_SPECIFIC_PASSWORD and APPLE_TEAM_ID are set. CI uses APPLEID / APPLEIDPASS / APPLEIDTEAM, so only scripts/notarize.js notarizes. Renaming those secrets to Apple's standard names would make the app notarize twice.
  • Auto-update reads latest-mac.yml, whose shape is unchanged.

🤖 Generated with Claude Code

jtklein-agents and others added 2 commits November 25, 2026 23:23
Pin electron-builder to ^26.18.1. The build block is unchanged.

Local macOS comparison, same commit, 24.13.3 vs 26.18.1:
- Artifact names: identical (universal dmg, universal-mac zip, blockmaps,
  latest-mac.yml); sizes within 2%.
- latest-mac.yml: same fields as the v2.0.18 release asset
  (version, files[url,sha512,size], path, sha512, releaseDate).
- static/bin and example files: same file list.
- app.asar: out/ and package.json identical; node_modules is re-hoisted
  by 26's collector (same packages, nested copies moved to top level).
  Dropped entirely: ajv@6 with uri-js, punycode, fast-json-stable-stringify
  (no runtime dependent; conf keeps ajv@8). Added: @types/parse-json,
  @types/prop-types, @types/react-transition-group.
- Resources: 26 adds LICENSE.electron.txt and LICENSES.chromium.html.
- Ad-hoc signed 26 zip passes codesign --verify --deep --strict.
- install-app-deps still runs from postinstall.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…der 26

26 moved getConfig to app-builder-lib/out/util/config/config. Its icon
tool only reads PNG frames from an ICNS, and public/icon.icns holds
JPEG2000 frames, so the Linux pack failed. public/icons/ holds the PNGs
extracted from that icns (16-512), which 26 uses for Linux in place of
converting the icns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jtklein-agents and others added 4 commits November 25, 2026 23:54
…ime-packages-current' into 371-pack-sign-and-publish-with-electron-builder-26

# Conflicts:
#	yarn.lock
@sentry/electron 8 pulls in @sentry/bundler-plugins, whose oxc-parser
installs one native binding per host arch. electron-builder 26 stops
the universal macOS build on a .node file that is the same in the x64
and arm64 halves. Only Sentry's build-tool plugins load oxc-parser, so
the app never needs the binding.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ime-packages-current' into 371-pack-sign-and-publish-with-electron-builder-26

# Conflicts:
#	yarn.lock
…ime-packages-current' into 371-pack-sign-and-publish-with-electron-builder-26

# Conflicts:
#	package.json
#	yarn.lock
@jtklein-agents
jtklein-agents merged commit 5f3317e into spec/370-electron-build-and-runtime-packages-current Nov 25, 2026
9 checks passed
@jtklein-agents
jtklein-agents deleted the 371-pack-sign-and-publish-with-electron-builder-26 branch November 25, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant