From 056546a920f9e7d0799a8d9da760c88a42cd9108 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Thu, 23 Jan 2025 19:29:49 +0100 Subject: [PATCH] add launch scripts for windows --- launch.cmd | 16 ++++++++++++++++ launch.ps1 | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 launch.cmd create mode 100644 launch.ps1 diff --git a/launch.cmd b/launch.cmd new file mode 100644 index 0000000..676d655 --- /dev/null +++ b/launch.cmd @@ -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 diff --git a/launch.ps1 b/launch.ps1 new file mode 100644 index 0000000..90a49a6 --- /dev/null +++ b/launch.ps1 @@ -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