Repository navigation
🐛 [fix] Repair macOS signatures and verify packaged startup - #218
Conversation
🐛 [fix] Sign final macOS bundles after fuse mutation and Universal merging, and verify signature integrity even without publisher credentials. 🐛 [fix] Deliver the MapLibre factory across the renderer vendor boundary and load its self-contained worker with the production file origin and CSP. 🧪 [test] Require renderer initialization, preload IPC, FIT parsing, a visible route, and a fresh completion report from packaged smoke launches. 👷 [build] Exercise real distributables across Linux, Windows x64 and ia32, and macOS ARM64, Intel, and Universal; protect existing Windows installations and retain failure evidence. 👷 [build] Validate updater payload metadata, pin changelog and upgrade workflow revisions, and retain screenshots and logs for installer upgrades. 🧹 [chore] Update Electron, Electron Builder, MapLibre, DOMPurify, and affected build dependencies while retaining the existing audit thresholds. 📝 [docs] Describe release rehearsals, ad hoc signing, integrity verification, and explicit manual publication.
|
Greetings, thanks for opening a pull request, I'll look when I can. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## main #218 +/- ##
=======================================
Coverage 63.09% 63.09%
=======================================
Files 8 8
Lines 1084 1084
Branches 208 208
=======================================
Hits 684 684
Misses 299 299
Partials 101 101
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 624 |
| Duplication | 33 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
🚜 [refactor] Separate smoke configuration, readiness checks, failure observation, renderer probes, and report capture into focused helpers while retaining every startup and map assertion. 🐛 [fix] Validate the report activity object explicitly before inspecting its fields, and remove the unused smoke test import reported by DeepScan. 🧪 [test] Cover invalid diagnostic configuration and a renderer failure during screenshot capture; split signature verification fixtures without dropping platform assertions. 📝 [docs] Explain the narrowly scoped filesystem operations used only by explicit local smoke mode.
| } | ||
|
|
||
| function createActivityProbeScript(fixture: string): string { | ||
| return `(async () => {${createFixtureProbeScript(fixture)}${createMapProbeScript()}})()`; |
🐛 [fix] Always exit unsuccessful smoke runs when diagnostic reporting fails, and select the native Windows archive extractor for drive-letter paths. 🧪 [test] Cover readiness deadlines, missing report directories, archive extraction, and child-process failures. 👷 [build] Run the complete release gate independently of platform artifacts while preserving its failure status. 🧪 [test] Probe Rosetta and sample stalled Universal smoke processes without changing the application timeout; retain failed packages for diagnosis.
🧪 [test] Validate rehearsal artifact provenance and hashes before checking direct startup and LaunchServices on the macOS 27 preview runner. 👷 [build] Expose compatibility checks through the existing rehearsal without skipping release gates, and register the official preview label for actionlint. 🚜 [refactor] Separate diagnostic option resolution from process monitoring and retain failure propagation. 📝 [docs] Document compatibility checks and distinguish ad hoc integrity signatures from trusted publisher signing.
🧪 [test] Verify the same ARM64-tested Universal DMG on a native Intel runner using its exact source, version, workflow run, attempt, and SHA-256. Require successful Intel verification before release publication. 🧪 [test] Default Universal smoke to the native host architecture and retain explicit Rosetta diagnostics. Preserve strict all-architecture signatures, fresh direct and LaunchServices readiness evidence, and the normal startup timeout. 📝 [docs] Document native release coverage and the observed hosted-runner Rosetta translation limitation.
🧪 [test] Separate architecture and Rosetta selection cases from platform installation tests, retain complete launch and evidence assertions, and split workflow provenance from required smoke-order checks to satisfy the existing complexity limits.
👷 [build] Keep explicit per-workflow job limits aligned with the required native Intel consumer and provide its compliant workflow title and source-specific run name.
🔒 [build] Match the approved braces and sprintf-js advisories to exact assessed lock nodes, versions, integrity values, and development scope while preserving the root moderate and docs high thresholds. Remove the obsolete image-size exceptions. 🔒 [build] Validate raw npm results, grounded advisory graphs, process failures, scalar identities, and dependency scope before accepting any finding. Keep accepted findings and npm exit statuses visible and reject unexpected stderr. 🧪 [test] Add 41 focused regression cases for approved graphs, scope changes, malformed results, cycles, process errors, and native npm invocation. 📝 [docs] Record the approved exposure assessment, constraints, and removal requirements in the development guides.
|



The published v30.0.2 ARM64 and Universal macOS packages contain an Electron framework signature invalidated by fuse changes. Final macOS apps now receive their ad hoc signature after fuse mutation and Universal merging, and strict signature verification checks every architecture. This repairs the confirmed package defect associated with #217. Ad hoc signatures do not provide trusted publisher identity or Apple notarization.
Packaged startup checks now require a visible initialized renderer, working preload IPC, real FIT decoding, a rendered route and map, a fresh nonce-bound completion report, and successful process exit. Crashes, signals, timeouts, and incomplete reports fail. Distribution checks exercise copied DMG apps through direct launch and LaunchServices, Windows ZIP/NSIS/portable packages, and Linux tarball/AppImage packages. Windows installer checks protect existing installations and verify cleanup.
Publication requires the identical Universal DMG to pass on native ARM64 and native Intel runners. The artifact handoff checks source commit, version, workflow run and attempt, successful ARM64 evidence, and SHA-256 before testing x64. Rehearsals also test the ARM64 DMG on GitHub's macOS 27 preview image. Optional Rosetta diagnostics retain their timeout and failure reporting; cold translation exceeded the budget with both our Universal package and unchanged upstream Electron, so those diagnostic runs are not reported as passes.
Additional repairs:
Fixes #217.
Validation:
All PR checks passed, including SonarCloud, Codacy, DeepScan, CodeQL, coverage, secret scans, and StepSecurity. The intended release is v30.0.3, followed by verification of the published downloads and real Windows updater path.