-
Notifications
You must be signed in to change notification settings - Fork 590
/
Copy pathbuild.sh
executable file
·44 lines (32 loc) · 1.12 KB
/
build.sh
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
#!/usr/bin/env bash
# wyoming-assist-microphone
set -ex
apt-get update
apt-get install -y --no-install-recommends --fix-missing \
netcat-traditional \
libasound2-plugins \
alsa-utils
apt-get clean
rm -rf /var/lib/apt/lists/*
pip3 install -U \
build \
setuptools \
wheel \
webrtc-noise-gain==1.2.3 \
pysilero-vad==1.0.0
git clone --branch=${SATELLITE_BRANCH} https://github.com/rhasspy/wyoming-satellite /tmp/wyoming_satellite
cd /tmp/wyoming_satellite
python3 -m build --wheel --sdist --outdir $PIP_WHEEL_DIR
cd /
rm -rf /tmp/wyoming_satellite
pip3 install $PIP_WHEEL_DIR/wyoming_satellite*.whl
pip3 show wyoming_satellite
twine upload --skip-existing --verbose $PIP_WHEEL_DIR/wyoming_satellite*.whl || echo "failed to upload wheel to ${TWINE_REPOSITORY_URL}"
rm $PIP_WHEEL_DIR/wyoming_satellite*.whl
# Clone rootfs & config.aml
git clone --depth=1 https://github.com/home-assistant/addons /tmp/addons
git -C /tmp/addons sparse-checkout set --no-cone assist_microphone/ '!*/assist_microphone'
# Copy sounds
mkdir -p /usr/src/sounds
cp -r /tmp/addons/assist_microphone/sounds/* /usr/src/sounds/
rm -rf /tmp/addons