-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_debug.bat
More file actions
37 lines (33 loc) · 1.35 KB
/
build_debug.bat
File metadata and controls
37 lines (33 loc) · 1.35 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
@echo off
chcp 65001 >nul
echo ========================================
echo Image Collage Generator - Build Script (Debug Mode)
echo ========================================
echo.
echo [1/3] Checking dependencies...
pip show pyinstaller >nul 2>&1
if %errorlevel% neq 0 (
echo PyInstaller not installed, installing now...
pip install pyinstaller
) else (
echo PyInstaller already installed
)
echo.
echo [2/3] Starting build (with console)...
pyinstaller --clean --noconfirm --name ImageCollage --console --onefile --icon icon.ico --add-data "icon.png;." --add-data "github.svg;." --add-data "toggle_on.svg;." --add-data "toggle_off.svg;." --paths . --hidden-import image_processor --hidden-import video_processor --hidden-import PyQt5 --hidden-import PyQt5.QtCore --hidden-import PyQt5.QtGui --hidden-import PyQt5.QtWidgets --hidden-import PyQt5.sip --hidden-import cv2 --hidden-import numpy --hidden-import PIL --hidden-import PIL.Image --hidden-import PIL.ImageDraw --hidden-import PIL.ImageOps main.py
if %errorlevel% neq 0 (
echo.
echo Build failed! Please check error messages.
pause
exit /b 1
)
echo.
echo [3/3] Build completed!
echo.
echo ========================================
echo Program location:
echo dist\ImageCollage.exe
echo.
echo This version shows a console window for debugging.
echo ========================================
pause