-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
28 lines (24 loc) · 852 Bytes
/
Copy pathinstall.sh
File metadata and controls
28 lines (24 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
# openfirebase installer (Linux/macOS).
# The package is source-available (not on PyPI); install from git or source.
set -euo pipefail
REPO="git+https://github.com/cognis-digital/openfirebase.git"
echo "Installing openfirebase..."
# Prefer pipx (isolated CLI), then uv, then pip, then local source.
if command -v pipx >/dev/null 2>&1; then
echo "-> using pipx"
pipx install "$REPO"
elif command -v uv >/dev/null 2>&1; then
echo "-> using uv"
uv tool install "$REPO" || uv pip install "$REPO"
elif command -v pip >/dev/null 2>&1; then
echo "-> using pip"
pip install "$REPO"
elif command -v pip3 >/dev/null 2>&1; then
echo "-> using pip3"
pip3 install "$REPO"
else
echo "-> no pipx/uv/pip found; installing from local source checkout"
python3 -m pip install .
fi
echo "Done. Try: openfirebase serve --memory"