Files
juc500/scripts/setup_macos.sh
T
joyharam 861b569994 Vendor pyusb wheel for offline Windows source installs
Include pyusb-1.2.1-py3-none-any.whl under vendor/wheels and wire
setup scripts to pip install --no-index --find-links.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-15 10:44:09 +09:00

29 lines
744 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
if ! command -v brew >/dev/null 2>&1; then
echo "Homebrew 가 필요합니다: https://brew.sh"
exit 1
fi
brew list libusb >/dev/null 2>&1 || brew install libusb
python3 -m venv .venv
# shellcheck disable=SC1091
source .venv/bin/activate
pip install -U pip
# vendor wheel 우선 (오프라인 가능)
pip install --no-index --find-links=vendor/wheels -r requirements.txt \
|| pip install --find-links=vendor/wheels -r requirements.txt
pip install -e .
echo
echo "설치 완료. 예:"
echo " source $ROOT/.venv/bin/activate"
echo " juc500 info"
echo " juc500 gui"
echo " juc500 recv -y --dest ~/Downloads"
echo " juc500 send /path/to/file"