- settings.py: per-Mac settings.json (campus code, youtube); ProPresenter
folder, network port and template library read from ProPresenter itself
- First run / --setup / y asks the campus; YouTube text only at NA
- Preacher picked for this campus from the notes email; a lone surname
("Pastor Geyser") matches the most recent speaker with it
- Never restart ProPresenter when its network API is off or not answering
- tools/make_kit.sh builds "Message Notes Kit <version>.zip" (installer,
program, launcher, READ ME FIRST); deploy.sh writes NA's settings
- Email setup text no longer names media@
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
23 lines
1.6 KiB
Bash
Executable File
23 lines
1.6 KiB
Bash
Executable File
#!/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\"'"
|