From e6c5239e00fbda380641a428cb3e8db46d9a5332 Mon Sep 17 00:00:00 2001 From: AFancyDog Date: Mon, 11 Aug 2025 12:55:53 +0100 Subject: [PATCH] actually fixed windows task --- .vscode/task_windows.bat | 13 +++++++++++++ .vscode/task_windows.ps1 | 6 ------ .vscode/tasks.json | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 .vscode/task_windows.bat delete mode 100755 .vscode/task_windows.ps1 diff --git a/.vscode/task_windows.bat b/.vscode/task_windows.bat new file mode 100644 index 0000000..9f00637 --- /dev/null +++ b/.vscode/task_windows.bat @@ -0,0 +1,13 @@ +@echo off +setlocal + +if not exist .venv ( + python -m venv .venv + call .venv\Scripts\activate.bat + pip install -r requirements.txt +) else ( + call .venv\Scripts\activate.bat +) + +cls +beet watch \ No newline at end of file diff --git a/.vscode/task_windows.ps1 b/.vscode/task_windows.ps1 deleted file mode 100755 index fdcd022..0000000 --- a/.vscode/task_windows.ps1 +++ /dev/null @@ -1,6 +0,0 @@ -if (-not (Test-Path .venv)) { - python -m venv .venv - .\.venv\Scripts\python -m pip install -r requirements.txt -} -clear -.\.venv\Scripts\python -m beet watch diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 9754945..69c5f6e 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -20,7 +20,7 @@ "command": "./.vscode/task_linux.sh" }, "windows": { - "command": "./.vscode/task_windows.ps1" + "command": "./.vscode/task_windows.bat" } } ]