From 5435c38a7ff4657edda483293bff7d7acc86e233 Mon Sep 17 00:00:00 2001 From: mhdi Date: Sat, 16 May 2026 14:54:51 +0330 Subject: [PATCH 1/2] Update start.bat every time we run this Batch file all dependencies must be check for install but know if we have dependencies or installed. don't reinstalling all of them and run code quickly --- start.bat | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/start.bat b/start.bat index 992fd0b..57705ea 100644 --- a/start.bat +++ b/start.bat @@ -39,19 +39,22 @@ if not exist "%VENV_DIR%\Scripts\python.exe" ( set "VPY=%VENV_DIR%\Scripts\python.exe" echo [*] Installing dependencies ... -"%VPY%" -m pip install --disable-pip-version-check -q --upgrade pip >nul -"%VPY%" -m pip install --disable-pip-version-check -q -r requirements.txt +"%VPY%" -m pip install -r requirements.txt -q --dry-run +if errorlevel 1 ( +"%VPY%" -m pip install --retries 0 --disable-pip-version-check -q --upgrade pip >nul +"%VPY%" -m pip install --retries 0 --disable-pip-version-check -q -r requirements.txt if errorlevel 1 ( echo [!] PyPI install failed. Retrying via runflare mirror ... - "%VPY%" -m pip install --disable-pip-version-check -q -r requirements.txt ^ - -i https://mirror-pypi.runflare.com/simple/ ^ - --trusted-host mirror-pypi.runflare.com + "%VPY%" -m pip install -r requirements.txt ^ + -i https://mirror-pypi.runflare.com/simple/ ^ + --trusted-host mirror-pypi.runflare.com if errorlevel 1 ( echo [X] Could not install dependencies. pause exit /b 1 ) ) +) if not exist "config.json" ( echo [*] No config.json found — launching setup wizard ... From bc1ad32655188ef2e6571c4c0560d4e0b0ca2628 Mon Sep 17 00:00:00 2001 From: mhdi Date: Sat, 16 May 2026 14:56:05 +0330 Subject: [PATCH 2/2] Update start.sh every time we run this bash file all dependencies must be check for install but know if we have dependencies or installed. don't reinstalling all of them and run code quickly --- start.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/start.sh b/start.sh index ee37246..6ddad43 100644 --- a/start.sh +++ b/start.sh @@ -35,6 +35,7 @@ fi VPY="$VENV_DIR/bin/python" echo "[*] Installing dependencies ..." +if ! "$VPY" -m pip install -r requirements.txt -q --dry-run; then "$VPY" -m pip install --disable-pip-version-check -q --upgrade pip >/dev/null if ! "$VPY" -m pip install --disable-pip-version-check -q -r requirements.txt; then echo "[!] PyPI install failed. Retrying via runflare mirror ..." @@ -42,6 +43,7 @@ if ! "$VPY" -m pip install --disable-pip-version-check -q -r requirements.txt; t -i https://mirror-pypi.runflare.com/simple/ \ --trusted-host mirror-pypi.runflare.com fi +fi if [ ! -f "config.json" ]; then echo "[*] No config.json found — launching setup wizard ..."