-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_windows.bat
More file actions
27 lines (23 loc) · 617 Bytes
/
Copy pathbuild_windows.bat
File metadata and controls
27 lines (23 loc) · 617 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
echo Building MBOX Email Viewer...
echo.
REM Activate virtual environment
call venv\Scripts\activate.bat
REM Clean previous builds
echo Cleaning previous builds...
rmdir /s /q build 2>nul
rmdir /s /q dist 2>nul
del *.spec 2>nul
REM Build with PyInstaller
echo Building executable...
pyinstaller --onefile --windowed ^
--name "MBOX Email Viewer" ^
--icon assets\icon.ico ^
--add-data "assets;assets" ^
--hidden-import email.mime.multipart ^
--hidden-import email.mime.text ^
--hidden-import email.mime.base ^
src\main.py
echo.
echo Build complete! Check the dist folder.
pause