-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
27 lines (24 loc) · 737 Bytes
/
build.bat
File metadata and controls
27 lines (24 loc) · 737 Bytes
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
@echo off
REM Build Hearsay with PyInstaller (onedir mode)
REM Run from the project root: build.bat
echo Building Hearsay...
pyinstaller --noconfirm --onedir --windowed ^
--name "Hearsay" ^
--icon "src\assets\icon.ico" ^
--add-data "src\assets;assets" ^
--hidden-import "faster_whisper" ^
--hidden-import "ctranslate2" ^
--hidden-import "pyaudiowpatch" ^
--hidden-import "sounddevice" ^
--hidden-import "customtkinter" ^
--hidden-import "pystray" ^
--collect-all "customtkinter" ^
--collect-all "faster_whisper" ^
--collect-all "ctranslate2" ^
src\hearsay\__main__.py
echo.
if %ERRORLEVEL% EQU 0 (
echo Build succeeded! Output in dist\Hearsay\
) else (
echo Build FAILED.
)