13 lines
506 B
Bash
13 lines
506 B
Bash
#!/bin/bash
|
|||
|
|
# Build dist/message-notes.pyz (zipapp) and copy the Desktop launcher next to it.
|
||
|
|
set -euo pipefail
|
||
|
|
cd "$(dirname "$0")/.."
|
||
|
|
rm -rf dist build/pyz && 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
|