Scripts: Make Start.bat idiotproof
Start now creates a venv, installs the correct requirements, and starts the API. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
060d422e03
commit
cc3229c109
3 changed files with 79 additions and 13 deletions
11
start.bat
Normal file
11
start.bat
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
:: From https://github.com/jllllll/windows-venv-installers/blob/main/Powershell/run-ps-script.cmd
|
||||
@echo off
|
||||
|
||||
set SCRIPT_NAME=start.ps1
|
||||
|
||||
:: This will run the Powershell script named above in the current directory
|
||||
:: This is intended for systems who have not changed the script execution policy from default
|
||||
:: These systems will be unable to directly execute Powershell scripts unless done through CMD.exe like below
|
||||
|
||||
if not exist "%~dp0\%SCRIPT_NAME%" ( echo %SCRIPT_NAME% not found! && pause && goto eof )
|
||||
call powershell.exe -executionpolicy Bypass ". '%~dp0\start.ps1' %*"
|
||||
Loading…
Add table
Add a link
Reference in a new issue