fix(reading): ship apex with libyaml, signed
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
The bundled apex had never run on a Mac without Homebrew: its release build resolves libyaml through rpaths for its CI runner and the Homebrew prefixes, and macOS ships no libyaml, so reading mode silently fell back to the raw source for everyone else since #76. The notary service rejected it too (an unsigned Mach-O in Resources), which is how this surfaced during the 0.1.0 cut. Resources/apex is now the arm64 slice of 1.1.58 (was 1.1.17), Developer ID-signed with the hardened runtime, with one rpath that resolves in the bundle and in the checkout alike. libyaml 0.2.5 rides beside it in libyaml.bundle/, same team signature: a bare dylib in the synced folder is classified by content and silently linked into the app, so the .bundle wrapper is load-bearing. THIRD-PARTY-NOTICES.md ships with both MIT texts; ADR-0011's bundling consequence is rewritten to match.
This commit is contained in:
1 parent
5f92241308
commit
fd806e9e76
7 files changed
+45
-3
No files matched your search
@@ -9,7 +9,7 @@ Reading mode renders markdown through apex (MIT, unified dialect) as an HTML fra
|
||||
|
||||
## Consequences
|
||||
|
||||
- **Bundling:** the prebuilt apex binary ships in app resources, signed + notarized. No source build in CI, no user install gate — a renderer must not grow a gate.
|
||||
- **Bundling:** the prebuilt apex binary (arm64 slice) and a vendored libyaml ship in app resources, Developer ID–signed at commit time (apex with the hardened runtime), apex's rpaths replaced by the single `@executable_path/../Resources`, which resolves in the bundle and in the checkout alike; Xcode copies and seals both as resources untouched. The vendored copy lives in `Resources/libyaml.bundle/` ON PURPOSE: Xcode's synced-folder classifier sniffs Mach-O content and silently adds any bare dylib (extension or not) to the app's link phase; a `.bundle` folder is an opaque resource. apex's release build links libyaml through CI/Homebrew rpaths, so alone it only ever ran on developer machines — reading mode silently fell back to source for everyone else (surfaced by the 0.1.0 notarization, which also rejects an unsigned Mach-O in Resources). Re-sign both when the Developer ID certificate rotates (`codesign -f -s "<identity>" --options runtime --timestamp Resources/apex`; `codesign -f -s "<identity>" --timestamp Resources/libyaml.bundle/libyaml-0.2.dylib`). No source build in CI, no user install gate — a renderer must not grow a gate. Licenses: `Resources/THIRD-PARTY-NOTICES.md`.
|
||||
- **One WKWebView, reloaded in place.** Remounting per document (`.id(sel)`) was the dominant switch cost — hundreds of ms of web-process respawn; `loadHTMLString` on a retained view feels instant.
|
||||
- **`--no-mixed-lists` is required**, not tuning: apex's default merges an ordered list following a bullet list into one `<ul>`, killing `1. 1. 1.` auto-renumbering.
|
||||
- **Early handoff:** stdout EOF is conversion done; apex's ~65 ms teardown is reaped async via `terminationHandler` (the error path still waits for exit status).
|
||||
Reference in new issue
Block a user