#!/bin/bash # Build and install on the North Attleboro ProPresenter Mac (via the ingest Mac, which holds the SSH key). # app -> ~/Library/Application Support/MessageNotes/message-notes.pyz # launcher -> ~/Desktop/Message Notes to ProPresenter.command # settings -> NA + YouTube, only if that Mac has no settings.json yet (so it never asks there) # Other campuses: tools/make_kit.sh set -euo pipefail cd "$(dirname "$0")/.." tools/build.sh >/dev/null HOP=checklist-ingest PROP=napropresenter@10.1.14.225 printf '{\n "campus": "NA",\n "youtube": true\n}\n' > dist/na-settings.json scp -q dist/message-notes.pyz "dist/Message Notes to ProPresenter.command" dist/na-settings.json "$HOP:/tmp/" rm -f dist/na-settings.json ssh "$HOP" "scp -q -i ~/.ssh/id_status_panel /tmp/message-notes.pyz '/tmp/Message Notes to ProPresenter.command' /tmp/na-settings.json $PROP:/tmp/ \ && rm -f /tmp/message-notes.pyz '/tmp/Message Notes to ProPresenter.command' /tmp/na-settings.json \ && ssh -i ~/.ssh/id_status_panel $PROP 'set -e; D=\"\$HOME/Library/Application Support/MessageNotes\"; mkdir -p \"\$D\"; \ mv /tmp/message-notes.pyz \"\$D/message-notes.pyz\"; \ mv \"/tmp/Message Notes to ProPresenter.command\" \"\$HOME/Desktop/Message Notes to ProPresenter.command\"; \ chmod +x \"\$HOME/Desktop/Message Notes to ProPresenter.command\"; \ if [ -f \"\$D/settings.json\" ]; then rm -f /tmp/na-settings.json; else mv /tmp/na-settings.json \"\$D/settings.json\"; fi; \ /usr/bin/python3 \"\$D/message-notes.pyz\" --version; cat \"\$D/settings.json\"; ls -l \"\$D/message-notes.pyz\" \"\$HOME/Desktop/Message Notes to ProPresenter.command\"'"