YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
Bump app to v2.4.150 — fix(macos,signing): stop mutating signed bundle on launch (parakeet-mlx) — release-app
Louis Beaumont14d813c1b989
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 50b6093a4..0cfccf558 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -1018,6 +1018,117 @@ jobs:fidone+ - name: Inject mlx.metallib into Contents/MacOS/ + re-sign (macOS)+ # MLX's runtime library search looks for mlx.metallib next to the+ # binary (Contents/MacOS/), not in the app's Resources dir. Tauri's+ # `bundle.resources` always lands in Contents/Resources/, so we have+ # to physically copy the file into Contents/MacOS/ ourselves.+ #+ # This must happen BEFORE notarization. Adding files inside an already+ # signed bundle invalidates the cdhash — that was the v2.4.133–149+ # "screenpipe is damaged" bug, which surfaced as repeated Gatekeeper+ # popups + the embedded server (port 3030) being killed mid-launch.+ # The runtime symlink approach we used to do is gone (see main.rs).+ # Now: copy + re-sign + rebuild DMG so the very first signature+ # already covers Contents/MacOS/mlx.metallib.+ #+ # Only runs for builds that ship parakeet-mlx (currently aarch64).+ # Skips silently if the resource is missing (placeholder build) or+ # under 1 MB (download failed in build.rs — empty placeholder).+ if: matrix.os_type == 'macos'+ shell: bash+ env:+ APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}+ run: |+ set -euo pipefail+ TARGET="${{ matrix.target }}"+ BUNDLE_DIR="apps/screenpipe-app-tauri/src-tauri/target/${TARGET}/release/bundle"+ APP_DIR="${BUNDLE_DIR}/macos"++ # Find the .app bundle Tauri produced+ shopt -s nullglob+ apps=( "${APP_DIR}"/*.app )+ if [ ${#apps[@]} -eq 0 ]; then+ echo "no .app to patch — skipping mlx.metallib inject"+ exit 0+ fi+ APP="${apps[0]}"+ RES_LIB="${APP}/Contents/Resources/mlx.metallib"++ if [ ! -f "$RES_LIB" ]; then+ echo "no Contents/Resources/mlx.metallib — non-mlx build, skipping"+ exit 0+ fi++ # Empty/placeholder metallib (created by build.rs on non-aarch64 macOS,+ # or when the GitHub release download failed) — don't bother injecting,+ # MLX would fail anyway. Real metallib is ~84 MB.+ SIZE=$(stat -f%z "$RES_LIB")+ if [ "$SIZE" -lt 1000000 ]; then+ echo "Resources/mlx.metallib is only ${SIZE} bytes (placeholder) — skipping inject"+ exit 0+ fi++ echo "=== Injecting mlx.metallib into Contents/MacOS/ (${SIZE} bytes) ==="+ cp "$RES_LIB" "${APP}/Contents/MacOS/mlx.metallib"++ # Re-unlock the keychain before re-signing — same retry pattern the+ # build step uses, since codesign needs the cert.+ BUILD_KC="$HOME/Library/Keychains/build.keychain-db"+ if [ -f "$BUILD_KC" ]; then+ security unlock-keychain -p "build_password" "$BUILD_KC"+ security set-keychain-settings -t 3600 "$BUILD_KC"+ fi++ # Re-sign the bundle. --deep so all inner binaries stay covered;+ # --force so the existing signature is replaced. Same identity ++ # entitlements + hardened-runtime flags Tauri used.+ codesign --force --deep \+ --sign "$APPLE_SIGNING_IDENTITY" \+ --options runtime \+ --entitlements apps/screenpipe-app-tauri/src-tauri/entitlements.plist \+ --timestamp \+ "$APP"++ codesign --verify --deep --strict --verbose=2 "$APP"+ echo "✅ ${APP##*/} re-signed with mlx.metallib in Contents/MacOS/"++ # Rebuild the DMG so it ships the modified .app. We mount the+ # original DMG read-write to preserve Tauri's layout (background+ # image, icon positions), swap the .app inside, then convert back+ # to UDZO. Avoids re-running tauri's DMG creator (which re-signs).+ DMG_DIR="${BUNDLE_DIR}/dmg"+ dmgs=( "${DMG_DIR}"/*.dmg )+ if [ ${#dmgs[@]} -eq 0 ]; then+ echo "no DMG produced — skipping DMG patch"+ exit 0+ fi+ DMG="${dmgs[0]}"+ DMG_RW="${DMG%.dmg}.rw.dmg"+ MOUNT="/Volumes/screenpipe-mlx-edit-$$"++ echo "=== Patching DMG: ${DMG##*/} ==="+ hdiutil convert "$DMG" -format UDRW -o "$DMG_RW"+ mkdir -p "$MOUNT"+ hdiutil attach "$DMG_RW" -mountpoint "$MOUNT" -nobrowse -noautoopen++ # Replace the .app inside the mounted DMG with the patched one.+ rm -rf "${MOUNT}/$(basename "$APP")"+ cp -R "$APP" "${MOUNT}/"++ hdiutil detach "$MOUNT"++ # Re-compress to read-only zlib-level-9 (same as Tauri's default).+ DMG_NEW="${DMG%.dmg}.new.dmg"+ hdiutil convert "$DMG_RW" -format UDZO -imagekey zlib-level=9 -o "$DMG_NEW"+ mv "$DMG_NEW" "$DMG"+ rm "$DMG_RW"++ # Re-sign the patched DMG so notarization sees a clean cdhash.+ codesign --force --sign "$APPLE_SIGNING_IDENTITY" --timestamp "$DMG"+ codesign --verify --verbose=2 "$DMG"+ echo "✅ ${DMG##*/} rebuilt + signed with patched .app"+- name: Clean up signing cert from login keychain (macOS)if: matrix.os_type == 'macos' && always()shell: bashdiff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex cc7f80cba..ff1cb8347 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.4.149"+version = "2.4.150"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex 3d9b07942..c780e3d44 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -1272,24 +1272,18 @@ async fn main() {env::set_var("TESSDATA_PREFIX", tessdata_path);}- // Ensure mlx.metallib is discoverable by MLX (parakeet-mlx).- // Tauri bundles it in Contents/Resources/ but MLX looks next to the binary- // (Contents/MacOS/). Create a symlink so both paths work.- #[cfg(target_os = "macos")]- {- if let Ok(exe) = std::env::current_exe() {- let macos_dir = exe.parent().unwrap_or(std::path::Path::new("."));- let target = macos_dir.join("mlx.metallib");- if !target.exists() {- // Try Contents/Resources/mlx.metallib (Tauri resource)- let resource = macos_dir.parent()- .map(|contents| contents.join("Resources/mlx.metallib"));- if let Some(src) = resource.filter(|p| p.exists()) {- let _ = std::os::unix::fs::symlink(&src, &target);- }- }- }- }+ // mlx.metallib is now placed at Contents/MacOS/mlx.metallib at+ // build time (see "Inject mlx.metallib into Contents/MacOS/" step+ // in .github/workflows/release-app.yml), then signed as part of+ // the normal codesign pass.+ //+ // Previously this block created a symlink at Contents/MacOS/mlx.metallib+ // pointing at Contents/Resources/mlx.metallib on first launch. Apple+ // seals every entry inside Contents/ at signing time — adding even a+ // symlink at runtime invalidates the cdhash, which on macOS 26.4++ // triggers the "screenpipe is damaged" Gatekeeper popup and can+ // leave the app running while the embedded server (port 3030) is+ // killed by the system. See incident: feedback-bot 2026-05-07.// Autostart setuplet autostart_manager = app.autolaunch();