Files
media-episode-viewer/build_mac.sh
T
2026-03-01 10:16:21 +08:00

20 lines
421 B
Bash

#!/usr/bin/env bash
set -euo pipefail
if [ "$(uname)" != "Darwin" ]; then
echo "This build script must be run on macOS." >&2
exit 1
fi
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
pip install py2app
# Build the macOS .app
python3 setup.py py2app
echo "Build complete. The application bundle is in dist/ (e.g. dist/mac_launcher.app)."