Skip to content
Tailapps
R

Remote

iPhone buttons that run commands on your Mac (deploy to Vercel, git pull, git status) in one project folder; the Mac replies to that phone. Turn on Sync to My Devices on both.

by MArk · Version 1 · Updated 21 minutes ago

Price
Free
Works on
Mac
Permissions
5

What it does

  • Lives where you glance

    Menu bar, TailApps Dock, Dashboard and a floating window on your Mac.

  • Talks to your other devices

    Turn on Sync to My Devices and its messages travel end-to-end encrypted.

  • Stays up to date

    Updates when something is sent to its inbox jobs

  • Stays up to date

    Updates when something is sent to its inbox results

  • Asks you to set up

    Project folder

What it may do

TailApps shows this list before installing and asks you once. The app can do nothing else.

  • Run its script run.sh

    script:run.sh

  • Receive events sent to its inbox jobs (from your hooks, webhooks or other devices)

    inbox:jobs

  • Send to its copies on your other devices (when you turn on Sync to My Devices)

    send:jobs

  • Receive events sent to its inbox results (from your hooks, webhooks or other devices)

    inbox:results

  • Send to its copies on your other devices (when you turn on Sync to My Devices)

    send:results

Scripts

Everything it runs is here to read before you install.

run.sh
#!/bin/sh
# Runs one of three fixed jobs in the project folder ($2) and prints { job, ok, output } as JSON.
# $1 names the job; it is never run as a command, and anything else is refused. Always exits 0, so the
# app can reply to the phone that asked even when the job fails.
job="$1"
dir="$2"
reply() { printf '%s' "$3" | tail -n 15 | jq -Rs --arg job "$1" --argjson ok "$2" '{job: $job, ok: $ok, output: .}'; }
if ! cd "$dir" 2>/dev/null; then
  reply "$job" false "The project folder is missing. Pick it again in Settings."
  exit 0
fi
case "$job" in
  deploy) out=$(vercel deploy --prod --yes 2>&1) ;;
  pull) out=$(git pull --ff-only 2>&1) ;;
  status) out=$(git status --short --branch 2>&1) ;;
  *) reply "$job" false "Unknown job"; exit 0 ;;
esac
if [ $? -eq 0 ]; then reply "$job" true "$out"; else reply "$job" false "$out"; fi