-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
38 lines (31 loc) · 1.1 KB
/
build.bat
File metadata and controls
38 lines (31 loc) · 1.1 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
@echo off
REM ===============================================================
REM 🧠 StackCheckMate Smart Installer Build Script (Windows BAT)
REM Author: Chisom Life Eke (Quick Red Tech)
REM Purpose: Build standalone Windows .exe for Smart Installer
REM ===============================================================
set APP_NAME=SmartInstaller
set MAIN_SCRIPT=smart_installer.py
set ICON_FILE=icon.ico
set DIST_DIR=build_output
echo 🚀 Building %APP_NAME% using PyInstaller...
REM Clean old builds
if exist build rmdir /s /q build
if exist dist rmdir /s /q dist
if exist %DIST_DIR% rmdir /s /q %DIST_DIR%
REM Compile to one-file executable with PySide6 support
pyinstaller --noconfirm --onefile --windowed ^
--name "%APP_NAME%" ^
--icon "%ICON_FILE%" ^
--add-data "assets;assets" ^
--hidden-import PySide6 ^
--hidden-import PySide6.QtCore ^
--hidden-import PySide6.QtGui ^
--hidden-import PySide6.QtWidgets ^
"%MAIN_SCRIPT%"
REM Create output folder and move built exe
mkdir %DIST_DIR%
move dist\* %DIST_DIR% >nul
echo ✅ Build completed!
echo 📦 EXE located at: %DIST_DIR%\%APP_NAME%.exe
pause