-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild_AutoFire.cmd
More file actions
36 lines (30 loc) · 967 Bytes
/
Build_AutoFire.cmd
File metadata and controls
36 lines (30 loc) · 967 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
28
29
30
31
32
33
34
35
36
@echo off
title AutoFire - One-Click Build
echo ===============================================
echo AutoFire - One-Click Build
echo ===============================================
REM Ensure deps
py -3 -m pip install -U pip PySide6 ezdxf packaging pyinstaller
REM Stop any running exe (prevents "Access is denied" during rebuild)
taskkill /f /im AutoFire.exe >nul 2>&1
REM Clean previous output (ignore errors)
rmdir /s /q "dist\\AutoFire" 2>nul
rmdir /s /q "build\\AutoFire" 2>nul
REM Build using the spec file if it exists; else build from app\\boot.py
if exist "AutoFire.spec" (
py -3 -m PyInstaller --noconfirm AutoFire.spec
) else (
py -3 -m PyInstaller --noconfirm --name AutoFire --windowed app\\boot.py
)
if errorlevel 1 (
echo.
echo ERROR: PyInstaller failed. See the messages above.
pause
exit /b 1
)
echo.
echo Build complete. Output:
echo dist\\AutoFire\\AutoFire.exe
echo.
echo Launching...
start "" "dist\\AutoFire\\AutoFire.exe"