Skip to content

Commit a4470c3

Browse files
authored
fix(installer, audio): postinstall whisper; download installer artefacts (#865)
* postinstall whisper; download installer artefacts * poetry lock
1 parent dade1a1 commit a4470c3

File tree

4 files changed

+31
-86
lines changed

4 files changed

+31
-86
lines changed

.github/workflows/release-and-publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,16 @@ jobs:
200200
with:
201201
name: OpenAdapt
202202
path: dist/
203+
- name: Download macOS installer
204+
uses: actions/download-artifact@v4
205+
with:
206+
name: OpenAdapt.dmg
207+
path: dist/
208+
- name: Download Windows installer
209+
uses: actions/download-artifact@v4
210+
with:
211+
name: OpenAdapt_Installer
212+
path: dist/
203213
- name: Python Semantic Release
204214
id: semantic_release
205215
uses: python-semantic-release/[email protected]

poetry.lock

Lines changed: 2 additions & 85 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ pyqt-toast-notification = "^1.1.0"
101101
pudb = "^2024.1"
102102
llvmlite = "0.40.1rc1"
103103
numba = "0.57.0"
104-
openai-whisper = {git = "https://github.com/openai/whisper.git"}
105104
sounddevice = "^0.4.6"
106105
soundfile = "^0.12.1"
107106
posthog = "^3.5.0"

scripts/postinstall.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@ def install_detectron2() -> None:
2323
sys.exit(1)
2424

2525

26+
def install_whisper() -> None:
27+
"""Install Whisper from its GitHub repository."""
28+
try:
29+
subprocess.check_call(
30+
[
31+
sys.executable,
32+
"-m",
33+
"pip",
34+
"install",
35+
"git+https://github.com/openai/whisper.git",
36+
"--no-build-isolation",
37+
]
38+
)
39+
except subprocess.CalledProcessError as e:
40+
print(f"Error installing Whisper: {e}")
41+
sys.exit(1)
42+
43+
2644
def install_dashboard() -> None:
2745
"""Install dashboard dependencies based on the operating system."""
2846
original_directory = os.getcwd()
@@ -64,6 +82,7 @@ def main() -> None:
6482
"""Main function to install dependencies."""
6583
try:
6684
install_detectron2()
85+
install_whisper()
6786
install_dashboard()
6887
except Exception as e:
6988
print(f"Unhandled error: {e}")

0 commit comments

Comments
 (0)