20 lines
709 B
Bash
20 lines
709 B
Bash
#!/bin/zsh
|
|||
|
|
# make_kit.sh — bundle everything another site needs into resi-propresenter-kit.zip.
|
||
|
|
# Site settings (resi_pp_config.json) are left out on purpose: the installer asks.
|
||
|
|
set -e
|
||
|
|
HERE="${0:A:h}"
|
||
|
|
cd "$HERE"
|
||
|
|
MODULE=$(ls resi-studio-cues-*.tgz | sort -V | tail -1)
|
||
|
|
|
||
|
|
STAGE=$(mktemp -d)
|
||
|
|
KIT="$STAGE/resi-propresenter-kit"
|
||
|
|
mkdir "$KIT"
|
||
|
|
cp install_bridge.sh resi_to_propresenter.py README.md "$MODULE" "$KIT/"
|
||
|
|
chmod +x "$KIT/install_bridge.sh"
|
||
|
|
|
||
|
|
rm -f resi-propresenter-kit.zip
|
||
|
|
(cd "$STAGE" && COPYFILE_DISABLE=1 zip -qrX "$HERE/resi-propresenter-kit.zip" resi-propresenter-kit)
|
||
|
|
rm -rf "$STAGE"
|
||
|
|
echo "Built resi-propresenter-kit.zip:"
|
||
|
|
unzip -l resi-propresenter-kit.zip | sed -n '4,$p' | sed '$d' | sed '$d'
|