update build .exe

This commit is contained in:
2026-03-07 07:25:33 +07:00
parent 8630a80810
commit 7af3024a25
6 changed files with 27 additions and 14 deletions

View File

@@ -5,7 +5,7 @@ REM Tao file .exe khong can cai Python
REM ============================================
echo ========================================
echo IoT Firmware Loader - Build for Windows
echo MiraV3 Firmware Loader - Build for Windows
echo ========================================
echo.
@@ -27,7 +27,9 @@ pip install PyQt6 scapy requests pyinstaller --quiet
REM 4. Build .exe
echo [3/4] Building executable...
pyinstaller ^
--name "IoT_Firmware_Loader" ^
--name "MiraV3_Firmware_Loader" ^
--icon "icon.ico" ^
--add-data "icon.ico;." ^
--onefile ^
--windowed ^
--noconfirm ^
@@ -40,15 +42,16 @@ pyinstaller ^
--hidden-import "PyQt6.QtGui" ^
main.py
echo.
echo [4/4] Build complete!
echo.
if exist "dist\IoT_Firmware_Loader.exe" (
echo ✅ SUCCESS: dist\IoT_Firmware_Loader.exe
if exist "dist\MiraV3_Firmware_Loader.exe" (
echo ✅ SUCCESS: dist\MiraV3_Firmware_Loader.exe
echo.
echo File size:
for %%A in ("dist\IoT_Firmware_Loader.exe") do echo %%~zA bytes
for %%A in ("dist\MiraV3_Firmware_Loader.exe") do echo %%~zA bytes
echo.
echo Ban co the copy file .exe nay sang may khac va chay truc tiep.
) else (