mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-28 00:53:45 +08:00
22a8575199
Keep official openpilot ancestry and dependency licenses. Store resources directly in Git, remove LFS setup requirements, and leave the downloadable big model outside the source tree.
20 lines
444 B
Bash
Executable File
20 lines
444 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
cd $DIR
|
|
|
|
if ! command -v uv &>/dev/null; then
|
|
echo "'uv' is not installed. Installing 'uv'..."
|
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
|
|
# doesn't require sourcing on all platforms
|
|
set +e
|
|
source $HOME/.local/bin/env
|
|
set -e
|
|
fi
|
|
|
|
export UV_PROJECT_ENVIRONMENT="$DIR/.venv"
|
|
uv sync --all-extras --upgrade
|
|
source "$DIR/.venv/bin/activate"
|