#!/bin/bash # Build the kit for other campuses: dist/Message Notes Kit .zip # Install Message Notes.command, message-notes.pyz, the Desktop launcher, READ ME FIRST.txt # No settings and no keys go in it - each Mac asks its own campus on install. set -euo pipefail cd "$(dirname "$0")/.." tools/build.sh >/dev/null V=$(/usr/bin/python3 dist/message-notes.pyz --version) K="dist/Message Notes Kit" rm -rf "$K" && mkdir -p "$K" cp dist/message-notes.pyz "dist/Message Notes to ProPresenter.command" "tools/kit/Install Message Notes.command" "$K/" sed "s/VERSION_HERE/$V/" "tools/kit/READ ME FIRST.txt" > "$K/READ ME FIRST.txt" chmod +x "$K/Install Message Notes.command" "$K/Message Notes to ProPresenter.command" Z="dist/Message Notes Kit $V.zip" rm -f "$Z" (cd dist && /usr/bin/ditto -c -k --keepParent --norsrc "Message Notes Kit" "Message Notes Kit $V.zip") rm -rf "$K" ls -l "$Z"