-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
73 lines (68 loc) · 2.14 KB
/
Copy pathbuild.bat
File metadata and controls
73 lines (68 loc) · 2.14 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@echo off
echo ==========================================
echo Translation Bridge - EXE Builder
echo ==========================================
echo.
:: Check if pyinstaller is installed
pip show pyinstaller >nul 2>&1
if %errorlevel% neq 0 (
echo Installing PyInstaller...
pip install pyinstaller
)
echo.
echo Building Translation Bridge.exe ...
echo.
:: Clean previous builds to avoid conflicts
if exist "build" rmdir /s /q build
if exist "Translation Bridge.spec" del /q "Translation Bridge.spec"
:: Build the exe (optimized)
pyinstaller --noconfirm ^
--onefile ^
--windowed ^
--name "Translation Bridge" ^
--icon "assets\icon.ico" ^
--add-data "assets\logo.png;assets" ^
--hidden-import customtkinter ^
--hidden-import PIL ^
--hidden-import pystray ^
--hidden-import chat_bridge ^
--hidden-import chat_bridge.app ^
--hidden-import chat_bridge.translator ^
--hidden-import chat_bridge.config ^
--hidden-import chat_bridge.hotkey ^
--hidden-import chat_bridge.tray ^
--hidden-import chat_bridge.constants ^
--hidden-import chat_bridge.ui ^
--hidden-import chat_bridge.ui.theme ^
--hidden-import chat_bridge.ui.setup_screen ^
--hidden-import chat_bridge.ui.main_screen ^
--hidden-import chat_bridge.ui.settings ^
--hidden-import chat_bridge.ui.toast ^
--hidden-import chat_bridge.ui.history ^
--exclude-module keyboard ^
--exclude-module numpy ^
--exclude-module pandas ^
--exclude-module matplotlib ^
--exclude-module scipy ^
--exclude-module IPython ^
--exclude-module notebook ^
--exclude-module pytest ^
--exclude-module unittest ^
--exclude-module doctest ^
--exclude-module pdb ^
--exclude-module tkinter.test ^
--exclude-module lib2to3 ^
--exclude-module xmlrpc ^
--exclude-module pydoc ^
--optimize 2 ^
chat_bridge.py
echo.
echo ==========================================
if exist "dist\Translation Bridge.exe" (
echo SUCCESS! Your .exe is in: dist\
echo File: dist\Translation Bridge.exe
) else (
echo Build failed. Check errors above.
)
echo ==========================================
pause