27 lines
653 B
Batchfile
27 lines
653 B
Batchfile
@echo off
|
|
echo ======================================
|
|
echo Building VS Code Copilot Setup
|
|
echo ======================================
|
|
echo.
|
|
|
|
REM Check if PyInstaller is installed
|
|
pip show pyinstaller >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [*] Installing PyInstaller...
|
|
pip install pyinstaller
|
|
echo.
|
|
)
|
|
|
|
REM Build the executable
|
|
echo [*] Building executable...
|
|
pyinstaller --onefile --icon=logo.ico --name="VSCode-Copilot-Setup" --uac-admin installer.py
|
|
|
|
echo.
|
|
echo ======================================
|
|
echo Build completed!
|
|
echo ======================================
|
|
echo.
|
|
echo Output location: dist\VSCode-Copilot-Setup.exe
|
|
echo.
|
|
pause
|