add launch scripts for windows
This commit is contained in:
16
launch.cmd
Normal file
16
launch.cmd
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
@echo off
|
||||||
|
REM Activate Python virtual environment
|
||||||
|
cd .
|
||||||
|
call .venv\Scripts\activate.bat
|
||||||
|
|
||||||
|
REM Perform a git pull to sync the repository
|
||||||
|
git pull
|
||||||
|
|
||||||
|
REM Run uv sync (replace 'uv sync' with the actual command if different)
|
||||||
|
uv sync
|
||||||
|
|
||||||
|
REM Start the Python script
|
||||||
|
python main.py
|
||||||
|
|
||||||
|
REM Deactivate the virtual environment
|
||||||
|
deactivate
|
||||||
15
launch.ps1
Normal file
15
launch.ps1
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# Activate Python virtual environment
|
||||||
|
Set-Location -Path "."
|
||||||
|
.venv\Scripts\Activate.ps1
|
||||||
|
|
||||||
|
# Perform a git pull to sync the repository
|
||||||
|
git pull
|
||||||
|
|
||||||
|
# Run uv sync (replace 'uv sync' with the actual command if different)
|
||||||
|
uv sync
|
||||||
|
|
||||||
|
# Start the Python script
|
||||||
|
python main.py
|
||||||
|
|
||||||
|
# Deactivate the virtual environment
|
||||||
|
deactivate
|
||||||
Reference in New Issue
Block a user