-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild-install.sh
More file actions
51 lines (46 loc) · 1.17 KB
/
Copy pathbuild-install.sh
File metadata and controls
51 lines (46 loc) · 1.17 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
set -euo pipefail
# Usage:
# ./build-install.sh all # Create venv + install all packages and dev deps
# ./build-install.sh api # Install API package
# ./build-install.sh cli # Install CLI package
# ./build-install.sh core # Install core package
# ./build-install.sh tools # Install tools package
# ./build-install.sh ha # Install Home Assistant integration
function print_usage {
echo "Usage: $0 {all|api|console|cli|core|tools|ha}"
}
install_all() {
uv venv .venv
uv pip install -e .[dev]
uv pip install -e packages/mewbo_core -e packages/mewbo_tools \
-e apps/mewbo_api -e apps/mewbo_cli \
-e apps/mewbo_ha_conversation
}
case ${1:-} in
all)
install_all
;;
api)
uv pip install -e apps/mewbo_api
;;
console)
cd apps/mewbo_console && npm install
;;
cli)
uv pip install -e apps/mewbo_cli
;;
core)
uv pip install -e packages/mewbo_core
;;
tools)
uv pip install -e packages/mewbo_tools
;;
ha)
uv pip install -e apps/mewbo_ha_conversation
;;
*)
print_usage
exit 1
;;
esac