2026-10-13 15:58:03 -04:00
|
|
|
#!/bin/bash
|
2026-10-14 12:57:44 -04:00
|
|
|
# Build and install on the North Attleboro ProPresenter Mac (via the ingest Mac, which holds the SSH key).
|
2026-10-13 15:58:03 -04:00
|
|
|
# app -> ~/Library/Application Support/MessageNotes/message-notes.pyz
|
|
|
|
|
# launcher -> ~/Desktop/Message Notes to ProPresenter.command
|
2026-10-14 12:57:44 -04:00
|
|
|
# settings -> NA + YouTube, only if that Mac has no settings.json yet (so it never asks there)
|
|
|
|
|
# Other campuses: tools/make_kit.sh
|
2026-10-13 15:58:03 -04:00
|
|
|
set -euo pipefail
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
tools/build.sh >/dev/null
|
|
|
|
|
HOP=checklist-ingest
|
|
|
|
|
PROP=napropresenter@10.1.14.225
|
2026-10-14 12:57:44 -04:00
|
|
|
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 \
|
2026-10-13 15:58:03 -04:00
|
|
|
&& 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\"; \
|
2026-10-14 12:57:44 -04:00
|
|
|
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\"'"
|