13 lines
571 B
Bash
Executable File
13 lines
571 B
Bash
Executable File
#!/bin/bash
|
|
# Build dist/message-notes.pyz (zipapp) and copy the Desktop launcher next to it.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
rm -rf build/pyz "dist/message-notes.pyz" "dist/Message Notes to ProPresenter.command" && mkdir -p dist build/pyz
|
|
cp src/*.py src/schema.json apps-script/SaveSermonNotes.gs build/pyz/
|
|
rm -rf build/pyz/__pycache__
|
|
/usr/bin/python3 -m zipapp build/pyz -o dist/message-notes.pyz -p "/usr/bin/env python3"
|
|
cp "tools/Message Notes to ProPresenter.command" dist/
|
|
chmod +x "dist/Message Notes to ProPresenter.command"
|
|
rm -rf build
|
|
ls -l dist
|