-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate_whisper.sh
executable file
·37 lines (26 loc) · 1.13 KB
/
update_whisper.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
#!/bin/bash
# 1. Rebuild the whisper_chunk_transcribe package
poetry build -C ~/github/whisper_chunk_transcribe/
# Ensure the build command finishes before continuing
if [ $? -ne 0 ]; then
echo "Build failed, exiting."
exit 1
fi
# 2. Change to the parent directory (cd ..)
cd ~/Documents
# 3. Delete the existing whisper_chunk_transcribe-0.1.0 directory
rm -rf ~/Documents/whisper_chunk_transcribe-0.1.0
# 4. Deactivate any currently active virtual environment
deactivate
# 5. Activate the virtual environment
source ~/Documents/.venv/bin/activate
# 6. Install the wheel file
pip install ~/github/whisper_chunk_transcribe/dist/whisper_chunk_transcribe-0.1.0-py3-none-any.whl
# 7. Extract the tar.gz file to /home/bigdaddy/Documents
tar -xzvf ~/github/whisper_chunk_transcribe/dist/whisper_chunk_transcribe-0.1.0.tar.gz -C ~/Documents
# 8. Copy the .env file to the extracted directory
cp ~/github/whisper_chunk_transcribe/.env ~/Documents/whisper_chunk_transcribe-0.1.0
# 9. Change to the whisper_chunk_transcribe-0.1.0 directory
cd ~/Documents/whisper_chunk_transcribe-0.1.0
# 10. Print a success message
echo "Tasks completed successfully."