Files
juc500/dist-offline/juc500-offline-update-20260720-123250/scripts/setup_macos.sh
T
2026-07-21 21:04:25 +09:00

32 lines
889 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 --no-index --find-links=vendor/wheels --no-build-isolation -e . \
|| pip install --find-links=vendor/wheels -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"