-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild_executable.bat
More file actions
47 lines (39 loc) · 1.12 KB
/
build_executable.bat
File metadata and controls
47 lines (39 loc) · 1.12 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
39
40
41
42
43
44
45
46
47
@echo off
echo 🚀 Building OptiScaler GUI Standalone Executable
echo ===============================================
REM Check if PyInstaller is available
python -c "import PyInstaller" 2>nul
if errorlevel 1 (
echo ❌ PyInstaller not found. Installing...
pip install pyinstaller
if errorlevel 1 (
echo ❌ Failed to install PyInstaller
pause
exit /b 1
)
)
echo ✅ PyInstaller found
REM Clean previous builds
echo 🧹 Cleaning previous builds...
if exist "dist" rmdir /s /q "dist"
if exist "build" rmdir /s /q "build"
REM Build the executable
echo 🔨 Building executable...
echo This may take several minutes...
python -m PyInstaller build_executable.spec --clean --noconfirm
if errorlevel 1 (
echo ❌ Build failed!
pause
exit /b 1
)
echo ✅ Build completed successfully!
echo.
echo 📁 Executable location:
echo Single file: dist\OptiScaler-GUI.exe
echo Portable: dist\OptiScaler-GUI-Portable\
echo.
echo 🎯 To distribute:
echo - Single file: Share dist\OptiScaler-GUI.exe
echo - Portable: Share entire dist\OptiScaler-GUI-Portable\ folder
echo.
pause