Files
overcode/build_installer.bat

63 lines
1.8 KiB
Batchfile

@echo off
echo ================================================
echo OverCode Shell - Building Installer
echo ================================================
:: Check if PyInstaller is available
python -m PyInstaller --version >nul 2>&1
if %errorlevel% neq 0 (
echo Installing PyInstaller...
pip install pyinstaller
)
:: Build the executable if it doesn't exist or is outdated
if not exist "dist\OverCodeShell.exe" (
echo Building executable with PyInstaller...
python -m PyInstaller overcode.spec
if %errorlevel% neq 0 (
echo Failed to build executable!
pause
exit /b 1
)
echo Executable built successfully!
) else (
echo Using existing executable...
)
:: Check if NSIS is available
where makensis >nul 2>&1
if %errorlevel% neq 0 (
echo ERROR: NSIS (Nullsoft Scriptable Install System) is not installed!
echo.
echo Please download and install NSIS from:
echo https://nsis.sourceforge.io/Download
echo.
echo After installation, add NSIS to your PATH or run:
echo "C:\Program Files (x86)\NSIS\makensis.exe" installer.nsi
echo.
pause
exit /b 1
)
:: Build the installer
echo Building Windows installer...
makensis installer.nsi
if %errorlevel% neq 0 (
echo Failed to build installer!
pause
exit /b 1
)
echo ================================================
echo BUILD COMPLETE! 🎉
echo ================================================
echo.
echo Created files:
echo - dist\OverCodeShell.exe (Standalone executable)
echo - OverCodeShell-Installer-v2.0.0-ULTRA.exe (Windows installer)
echo.
echo To distribute OverCode Shell:
echo 1. Share the installer for full installation with shortcuts
echo 2. Or share just the OverCodeShell.exe for portable use
echo.
pause