44 lines
1.1 KiB
Batchfile
44 lines
1.1 KiB
Batchfile
@echo off
|
|
echo ========================================
|
|
echo NexusLauncher Debug Mode
|
|
echo ========================================
|
|
echo.
|
|
|
|
echo [1/4] Closing existing instances...
|
|
taskkill /f /im pythonw.exe 2>nul
|
|
taskkill /f /im python.exe 2>nul
|
|
echo.
|
|
|
|
echo [2/4] Cleaning cache...
|
|
echo Cleaning all __pycache__ folders...
|
|
for /d /r %%d in (__pycache__) do @if exist "%%d" rd /s /q "%%d"
|
|
|
|
echo Cleaning module caches...
|
|
if exist "__pycache__" rd /s /q "__pycache__"
|
|
if exist "config\__pycache__" rd /s /q "config\__pycache__"
|
|
if exist "ui\__pycache__" rd /s /q "ui\__pycache__"
|
|
if exist "ui\task\__pycache__" rd /s /q "ui\task\__pycache__"
|
|
echo.
|
|
|
|
@REM echo Clear old config file
|
|
@REM if exist config.json del /f config.json
|
|
|
|
echo [3/4] Checking Python version...
|
|
python --version
|
|
echo.
|
|
|
|
echo [4/4] Launching NexusLauncher in Debug Mode...
|
|
echo Console window will remain open for debugging
|
|
echo Press Ctrl+C to stop the application
|
|
echo.
|
|
echo ========================================
|
|
echo.
|
|
|
|
python main.py
|
|
|
|
echo.
|
|
echo ========================================
|
|
echo NexusLauncher stopped
|
|
echo ========================================
|
|
pause
|