Some setup scripts, let's see how it goes though..
This commit is contained in:
parent
d2b9614d89
commit
90d5660c35
4 changed files with 97 additions and 1 deletions
19
scripts/windows/setup.bat
Normal file
19
scripts/windows/setup.bat
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
@echo off
|
||||
|
||||
@REM Install Python using WinGet if necessary
|
||||
python --version >nul 2>&1 || ( winget install -e --id Python.Python.3.10 )
|
||||
|
||||
@REM Install ffmpeg using WinGet if necessary
|
||||
ffmpeg -version >nul 2>&1 || ( winget install ffmpeg )
|
||||
|
||||
@REM Refresh the environment vars so any installed commands above are active
|
||||
call refresh_env.bat
|
||||
|
||||
@REM Set up the venv if it needs to be
|
||||
if not exist ..\..\.venv\ ( python -m venv ..\..\.venv )
|
||||
|
||||
@REM Install required scripts
|
||||
..\..\.venv\Scripts\pip.exe install -r ..\..\requirements.txt
|
||||
|
||||
@REM Activate the new venv
|
||||
..\..\.venv\Scripts\activate.bat
|
||||
Loading…
Reference in a new issue