7627c17653
Restores the helper accidentally removed when adding access-denied handling, retries I/O after seeding pyusb config index on Windows, and handles USB overflow reads without crashing the HELLO loop. Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
779 B
Bash
Executable File
31 lines
779 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 " ./start.sh"
|
|
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"
|