Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(scripts): sign bundled native dylib modules for macOS notarization

Steven Enamakelcad522c3289b
diff --git a/scripts/release/sign-and-notarize-macos.sh b/scripts/release/sign-and-notarize-macos.sh
index 46da4a480f..e6acf39e5b 100755
--- a/scripts/release/sign-and-notarize-macos.sh
+++ b/scripts/release/sign-and-notarize-macos.sh
@@ -123,6 +123,14 @@ for bin in "$APP_PATH/Contents/Resources/"openhuman-core-*; do
codesign_hardened "$bin"
done
+# Bundled native modules: notarization rejects unsigned Mach-O under Resources/.
+# tinybus pins the module *archive* digest, not the extracted dylib, so signing
+# the extracted library in place does not break admission.
+while IFS= read -r -d '' lib; do
+ echo "[sign] Signing bundled module: ${lib#"$APP_PATH/Contents/Resources/"}"
+ codesign_hardened "$lib"
+done < <(find "$APP_PATH/Contents/Resources/bundled-modules" -name '*.dylib' -type f -print0 2>/dev/null)
+
# ── Outer .app bundle ───────────────────────────────────────────────────────
echo "[sign] Signing .app bundle..."
codesign_hardened "$APP_PATH"