-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure
executable file
·41 lines (30 loc) · 1.21 KB
/
configure
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
#!/bin/sh
# TODO: rename to install-dependencies.sh ?
# TODO: download sync-audio-tracks?
ADB_REPULL_COMMIT="f253e1a27be58a457ed02bb116788c43f9e37798"
echo "Checking installed dependencies..."
for i in ruby python3 pip3 ffmpeg sync-audio-tracks.sh arecord mpv adb xdotool socat; do
if ! [ -x "$(command -v $i)" ] ; then
echo "Fail: $i was not found"
exit 1
fi
done
echo OK
echo "Installing dependencies..."
set -euo pipefail
cd "$(dirname $0)"
gem install colorize -v 1.1.0
gem install concurrent-ruby -v 1.2.2
gem install digest-crc -v 0.6.5
gem install lru_redux -v 1.1.0
gem install mpv -v 3.0.1
gem install neovim -v 0.9.1
gem install parallel -v 1.24.0
# TODO: add versions
# TODO: if nvidia-cuda-toolkit is installed, etc.; AND if torch cuda version is not installed
#pip3 uninstall --break-system-packages torch
#pip3 install --user --break-system-packages torch torchvision torchaudio onnxruntime --extra-index-url https://download.pytorch.org/whl/cu116
# TODO: load whisper.cpp base module once, to download it
wget "https://gist.githubusercontent.com/alopatindev/e94ff95ea834500abe2da81ac2a7764f/raw/${ADB_REPULL_COMMIT}/adb_repull.py" -O lib/adb_repull.py
chmod +x lib/adb_repull.py
echo "Done"