18 lines
1.2 KiB
Bash
18 lines
1.2 KiB
Bash
#!/bin/bash
|
|||
|
|
# Build and install on the 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
|
||
|
|
set -euo pipefail
|
||
|
|
cd "$(dirname "$0")/.."
|
||
|
|
tools/build.sh >/dev/null
|
||
|
|
HOP=checklist-ingest
|
||
|
|
PROP=napropresenter@10.1.14.225
|
||
|
|
scp -q dist/message-notes.pyz "dist/Message Notes to ProPresenter.command" "$HOP:/tmp/"
|
||
|
|
ssh "$HOP" "scp -q -i ~/.ssh/id_status_panel /tmp/message-notes.pyz '/tmp/Message Notes to ProPresenter.command' $PROP:/tmp/ \
|
||
|
|
&& rm -f /tmp/message-notes.pyz '/tmp/Message Notes to ProPresenter.command' \
|
||
|
|
&& 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\"; \
|
||
|
|
/usr/bin/python3 \"\$D/message-notes.pyz\" --version; ls -l \"\$D/message-notes.pyz\" \"\$HOME/Desktop/Message Notes to ProPresenter.command\"'"
|