Initial commit
This commit is contained in:
38
build.bat
Normal file
38
build.bat
Normal file
@@ -0,0 +1,38 @@
|
||||
@echo off
|
||||
echo ============================================
|
||||
echo NotifyPulse - Builder
|
||||
echo ============================================
|
||||
echo.
|
||||
|
||||
echo [1/3] Installing dependencies...
|
||||
python -m pip install -r requirements.txt
|
||||
if errorlevel 1 (
|
||||
echo ERROR: pip install failed.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo [2/3] Preparing icon...
|
||||
python make_ico.py
|
||||
|
||||
echo.
|
||||
echo [3/3] Building exe...
|
||||
if exist icon.ico (
|
||||
python -m PyInstaller --onefile --noconsole --name NotifyPulse --icon icon.ico notifier.py
|
||||
) else (
|
||||
python -m PyInstaller --onefile --noconsole --name NotifyPulse notifier.py
|
||||
)
|
||||
if errorlevel 1 (
|
||||
echo ERROR: Build failed.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ============================================
|
||||
echo Build complete! Your exe: dist\NotifyPulse.exe
|
||||
echo ============================================
|
||||
echo.
|
||||
explorer dist
|
||||
pause
|
||||
Reference in New Issue
Block a user