Skip to content

Commit 313da61

Browse files
nesquena-hermesHermes Agent
andauthored
fix: v1.3.6 — build.sh embeds entitlements in local builds, stale test comment (#51)
Co-authored-by: Hermes Agent <hermes@nesquena-hermes.local>
1 parent dd571b9 commit 313da61

3 files changed

Lines changed: 21 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## [v1.3.6] — 2026-04-20
4+
5+
### Fixed
6+
- **`build.sh` now embeds entitlements in local ad-hoc builds** — `codesign` in `build.sh`
7+
was signing without `--entitlements Entitlements.plist`, so locally-built `.app` bundles
8+
never had any embedded entitlements (including `com.apple.security.device.audio-input`).
9+
CI was correct (it already passed `--entitlements`). Local builds now embed the same
10+
entitlements as CI-signed DMGs, making mic and other entitlement-gated features testable
11+
without a full CI run. (reviewer follow-up from #50)
12+
- **Stale comment in `LaunchBehaviorTests`** — the warm-up regression history comment still
13+
referenced `default(for:)` and omitted the v1.3.5 entitlement root cause. Updated to
14+
accurately describe the fix history through v1.3.5. (reviewer follow-up from #50)
15+
316
## [v1.3.5] — 2026-04-20
417

518
### Fixed

‎Tests/HermesAgentTests/LaunchBehaviorTests.swift‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ final class LaunchBehaviorTests: XCTestCase {
2020
/// even when TCC status is .authorized and the WKUIDelegate returns .grant.
2121
///
2222
/// **History:** Deleted in v1.3.2 (it was part of the proactive prompt, which was rightly removed).
23-
/// Mic broke for all users (v1.3.2, v1.3.3). Restored as a silent warm-up in v1.3.4 (PR #49).
23+
/// Mic broke for all users (v1.3.2–v1.3.4). Root cause found in v1.3.5: Entitlements.plist used
24+
/// `com.apple.security.device.microphone` (invalid) instead of `com.apple.security.device.audio-input`.
25+
/// warm-up now uses `AVCaptureDevice.requestAccess` (contacts tccd) not `default(for:)` (IOKit only).
26+
/// Fixed in v1.3.5 (PR #50).
2427
///
2528
/// **If you're tempted to remove it:** don't. If you think it's redundant, check the above.
2629
/// The TCC status being .authorized is necessary but not sufficient — the host AVFoundation

‎build.sh‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ cat > "$APP_BUNDLE/Contents/Info.plist" << PLIST
101101
PLIST
102102

103103
echo "→ Signing (ad-hoc)..."
104-
# Sign the framework first, then the app
104+
# Sign the framework first, then the app bundle.
105+
# --entitlements embeds the plist so local builds match CI-signed DMGs.
106+
# Note: ad-hoc signing (sign -) does not verify entitlements; use CI for notarized builds.
105107
codesign --force --deep --sign - "$APP_BUNDLE/Contents/Frameworks/Sparkle.framework"
106-
codesign --force --deep --sign - "$APP_BUNDLE"
108+
codesign --force --deep --sign - --entitlements Entitlements.plist "$APP_BUNDLE"
107109

108110
echo "→ Installing to Applications..."
109111
rm -rf "/Applications/$APP_BUNDLE"

0 commit comments

Comments
 (0)