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
fix ffmpeg darwin arm64 (#947)
neo77392032227c2f4
diff --git a/install.sh b/install.shindex d39966633..728718073 100755--- a/install.sh+++ b/install.sh@@ -124,14 +124,45 @@ if [ "$(uname)" = "Darwin" ]; then# Check if ffmpeg is installedif ! command -v ffmpeg >/dev/null 2>&1; thenecho "installing ffmpeg..."- FFMPEG_VERSION="7.1"- FFMPEG_URL="https://evermeet.cx/ffmpeg/ffmpeg-${FFMPEG_VERSION}.zip"- # Download and extract ffmpeg- curl -sL "$FFMPEG_URL" -o ffmpeg.zip- unzip -q ffmpeg.zip+ if [ "$arch" = "aarch64" ]; then+ FFMPEG_URL="https://ffmpeg.martin-riedl.de/redirect/latest/macos/arm64/release/ffmpeg.zip"+ else+ FFMPEG_URL="https://ffmpeg.martin-riedl.de/redirect/latest/macos/amd64/release/ffmpeg.zip"+ fi++ echo "downloading ffmpeg from: $FFMPEG_URL"+ if ! curl -sL "$FFMPEG_URL" -o ffmpeg.zip; then+ echo "failed to download ffmpeg"+ exit 1+ fi++ if ! unzip -q ffmpeg.zip; then+ echo "failed to extract ffmpeg"+ exit 1+ firm ffmpeg.zip+ # Verify code signing on macOS+ echo "verifying code signature..."+ if ! codesign -v ./ffmpeg 2>/dev/null; then+ echo "warning: binary is not signed or signature is invalid"+ read -p "do you want to continue anyway? (y/N) " -n 1 -r+ echo+ if [[ ! $REPLY =~ ^[Yy]$ ]]; then+ echo "installation aborted"+ exit 1+ fi+ fi++ # Verify the binary runs and check version+ echo "verifying binary..."+ if ! FFMPEG_VERSION=$(./ffmpeg -version | head -n1); then+ echo "binary verification failed"+ exit 1+ fi+ echo "detected version: $FFMPEG_VERSION"+# Move to local binmkdir -p "$HOME/.local/bin"mv ffmpeg "$HOME/.local/bin/"