mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Update win_install.bat
This commit is contained in:
parent
e994e08566
commit
be69ae8c01
@ -1,12 +1,14 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
REM Check if running in PowerShell
|
||||||
@REM Check and install python
|
@REM Check and install python
|
||||||
@REM where /Q python >nul 2>nul
|
@REM where /q python >nul 2>nul
|
||||||
@REM if %errorlevel% neq 1 (
|
@REM if %errorlevel% neq 1 (
|
||||||
@REM echo Checking Python...
|
@REM echo Checking Python...
|
||||||
@REM ) else (
|
@REM ) else (
|
||||||
|
@REM call (exit /b 0)
|
||||||
@REM echo python not found. Checking for Chocolatey...
|
@REM echo python not found. Checking for Chocolatey...
|
||||||
@REM REM Check if Chocolatey is installed
|
@REM REM Check if Chocolatey is installed
|
||||||
@REM where /Q choco >nul 2>nul
|
@REM where /q choco >nul 2>nul
|
||||||
@REM if %errorlevel% neq 1 (
|
@REM if %errorlevel% neq 1 (
|
||||||
@REM echo Installing python using Chocolatey...
|
@REM echo Installing python using Chocolatey...
|
||||||
@REM choco install python -y
|
@REM choco install python -y
|
||||||
@ -58,7 +60,7 @@ if !PYTHON_MAJOR! LSS !REQUIRED_MAJOR! (
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
echo Python version !PYTHON_VERSION! is >= !REQUIRED_VERSION!. Continuing...
|
echo Python version %PYTHON_VERSION% is >= %REQUIRED_VERSION%. Continuing...
|
||||||
|
|
||||||
if exist ".venv\" (
|
if exist ".venv\" (
|
||||||
echo .venv exists.
|
echo .venv exists.
|
||||||
@ -68,14 +70,14 @@ if exist ".venv\" (
|
|||||||
.venv\Scripts\pip install -r requirements.txt
|
.venv\Scripts\pip install -r requirements.txt
|
||||||
)
|
)
|
||||||
|
|
||||||
where /Q ffmpeg >nul 2>nul
|
where /q ffmpeg >nul 2>nul
|
||||||
if %errorlevel% neq 1 (
|
if %errorlevel% neq 1 (
|
||||||
echo ffmpeg exists.
|
echo ffmpeg exists.
|
||||||
) else (
|
) else (
|
||||||
|
call (exit /b 0)
|
||||||
echo ffmpeg not found. Checking for Chocolatey...
|
echo ffmpeg not found. Checking for Chocolatey...
|
||||||
|
|
||||||
REM Check if Chocolatey is installed
|
REM Check if Chocolatey is installed
|
||||||
where /Q choco >nul 2>nul
|
where /q choco >nul 2>nul
|
||||||
if %errorlevel% neq 1 (
|
if %errorlevel% neq 1 (
|
||||||
echo Installing ffmpeg using Chocolatey...
|
echo Installing ffmpeg using Chocolatey...
|
||||||
choco install ffmpeg -y
|
choco install ffmpeg -y
|
||||||
@ -90,11 +92,12 @@ if %errorlevel% neq 1 (
|
|||||||
|
|
||||||
|
|
||||||
REM Check if OpenSSL exists
|
REM Check if OpenSSL exists
|
||||||
where /Q openssl >nul 2>nul
|
where /q openssl >nul 2>nul
|
||||||
if %errorlevel% neq 1 (
|
if %errorlevel% neq 1 (
|
||||||
echo openssl exists.
|
echo openssl exists.
|
||||||
goto end
|
goto end
|
||||||
)
|
)
|
||||||
|
call (exit /b 0)
|
||||||
|
|
||||||
REM Check if pycryptodome is installed
|
REM Check if pycryptodome is installed
|
||||||
.venv\Scripts\pip list | findstr /i "pycryptodome" >nul
|
.venv\Scripts\pip list | findstr /i "pycryptodome" >nul
|
||||||
@ -102,6 +105,7 @@ if %errorlevel% equ 0 (
|
|||||||
echo pycryptodome exists.
|
echo pycryptodome exists.
|
||||||
goto end
|
goto end
|
||||||
)
|
)
|
||||||
|
call (exit /b 0)
|
||||||
|
|
||||||
REM Prompt for installation option
|
REM Prompt for installation option
|
||||||
echo Please choose an option:
|
echo Please choose an option:
|
||||||
@ -114,11 +118,12 @@ if "%choice%"=="2" (
|
|||||||
echo Installing pycryptodome.
|
echo Installing pycryptodome.
|
||||||
.venv\Scripts\pip install pycryptodome
|
.venv\Scripts\pip install pycryptodome
|
||||||
) else (
|
) else (
|
||||||
|
call (exit /b 0)
|
||||||
echo Installing openssl.
|
echo Installing openssl.
|
||||||
echo Checking for Chocolatey...
|
echo Checking for Chocolatey...
|
||||||
|
|
||||||
REM Check if Chocolatey is installed
|
REM Check if Chocolatey is installed
|
||||||
where /Q choco >nul 2>nul
|
where /q choco >nul 2>nul
|
||||||
if %errorlevel% neq 1 (
|
if %errorlevel% neq 1 (
|
||||||
echo Installing openssl using Chocolatey...
|
echo Installing openssl using Chocolatey...
|
||||||
choco install openssl -y
|
choco install openssl -y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user