The distribution, console script and import package are now audio-scribe / audio_scribe (src/audio_scribe). Everything named for the old project follows: - CcnError -> AudioScribeError, and its code "ccn_error" -> "audio_scribe_error" (the code is never persisted, so existing job state still loads) - CCN_LIVE -> AUDIO_SCRIBE_LIVE for the live-GPU tests - OpenVINO kernel cache moves to <cache>/audio-scribe/ov_cache; the first run after upgrading recompiles kernels, and the old directory is left in place - README, build-binary.sh, hatch/coverage config and uv.lock updated to match Breaking: the command is now `audio-scribe`; reinstall any tool install of the old name with `uv tool uninstall ccn-transcribe && uv tool install .`. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
26 lines
924 B
Bash
Executable File
26 lines
924 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build a self-contained audio-scribe directory that runs without Python or uv.
|
|
#
|
|
# onedir, never onefile: onefile extracts ~450 MB to /tmp on every launch.
|
|
# deno lands in bin/ because PyInstaller points sys.prefix at the bundle, which
|
|
# is where the package already looks for the JS runtime it ships with.
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")/.."
|
|
DIST=${1:-dist}
|
|
|
|
uv run --locked --with pyinstaller pyinstaller \
|
|
--noconfirm --onedir --name audio-scribe \
|
|
--distpath "$DIST" --workpath "build/pyinstaller" --specpath "build" \
|
|
--collect-all openvino \
|
|
--collect-all openvino_genai \
|
|
--collect-all openvino_tokenizers \
|
|
--collect-all yt_dlp \
|
|
--collect-all yt_dlp_ejs \
|
|
--add-binary "$PWD/.venv/bin/deno:bin" \
|
|
src/audio_scribe/__main__.py
|
|
|
|
echo
|
|
echo "built $DIST/audio-scribe ($(du -sh "$DIST/audio-scribe" | cut -f1))"
|
|
echo "verify it with: $DIST/audio-scribe/audio-scribe doctor"
|