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(release): preserve Homebrew path on Mac runner (#6560)
Ezra Ellette0fe679b51a70
diff --git a/infra/release-mac-runner/configure-runner.sh b/infra/release-mac-runner/configure-runner.shindex 51ede5d31..2f44d2ac9 100755--- a/infra/release-mac-runner/configure-runner.sh+++ b/infra/release-mac-runner/configure-runner.sh@@ -40,7 +40,7 @@ COMMAND_ID=$(aws ssm send-command \--region "$REGION" \--instance-ids "$INSTANCE_ID" \--document-name AWS-RunShellScript \- --parameters "commands=[\"sudo -u ec2-user -H /bin/bash -lc 'cd /Users/ec2-user/actions-runner && ./config.sh --unattended --replace --url https://github.com/$REPOSITORY --token $REGISTRATION_TOKEN --name $RUNNER_NAME --labels $RUNNER_LABEL --work /Users/ec2-user/screenpipe-cache/work'\",\"sudo -u ec2-user -H /bin/bash -lc 'cd /Users/ec2-user/actions-runner && rm -f /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist .service runsvc.sh && ./svc.sh install'\",\"plutil -insert EnvironmentVariables.PATH -string '/opt/homebrew/bin:/Users/ec2-user/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist\",\"launchctl bootout system/$SERVICE_LABEL 2>/dev/null || true\",\"cp /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"chown root:wheel /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"chmod 0644 /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"launchctl bootstrap system /Library/LaunchDaemons/$SERVICE_LABEL.plist || { sleep 2; launchctl bootstrap system /Library/LaunchDaemons/$SERVICE_LABEL.plist; }\"]" \+ --parameters "commands=[\"sudo -u ec2-user -H /bin/bash -lc 'export PATH=/opt/homebrew/bin:/Users/ec2-user/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin; cd /Users/ec2-user/actions-runner && ./config.sh --unattended --replace --url https://github.com/$REPOSITORY --token $REGISTRATION_TOKEN --name $RUNNER_NAME --labels $RUNNER_LABEL --work /Users/ec2-user/screenpipe-cache/work'\",\"sudo -u ec2-user -H /bin/bash -lc 'cd /Users/ec2-user/actions-runner && rm -f /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist .service runsvc.sh && ./svc.sh install'\",\"plutil -insert EnvironmentVariables.PATH -string '/opt/homebrew/bin:/Users/ec2-user/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist\",\"launchctl bootout system/$SERVICE_LABEL 2>/dev/null || true\",\"cp /Users/ec2-user/Library/LaunchAgents/$SERVICE_LABEL.plist /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"chown root:wheel /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"chmod 0644 /Library/LaunchDaemons/$SERVICE_LABEL.plist\",\"launchctl bootstrap system /Library/LaunchDaemons/$SERVICE_LABEL.plist || { sleep 2; launchctl bootstrap system /Library/LaunchDaemons/$SERVICE_LABEL.plist; }\"]" \--query 'Command.CommandId' \--output text)