feat(startup): add Windows start scripts

This commit is contained in:
2026-08-02 00:49:54 +05:00
parent b48a45526e
commit ab886796e8
2 changed files with 31 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
@echo off
powershell -ExecutionPolicy Bypass -File "%~dp0start.ps1"
+29
View File
@@ -0,0 +1,29 @@
$Host.UI.RawUI.WindowTitle = "TDATA Checker"
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
Set-Location $ScriptDir
# Проверка Python
if (-not (Get-Command python -ErrorAction SilentlyContinue)) {
Write-Host "[ERROR] Python не найден. Установи Python 3.11+ с https://python.org" -ForegroundColor Red
exit 1
}
# Создание .venv если нет
if (-not (Test-Path ".venv")) {
Write-Host "[INFO] Создание виртуального окружения..."
python -m venv .venv
}
# Активация
& ".venv\Scripts\Activate.ps1"
# Установка зависимостей
Write-Host "[INFO] Установка зависимостей..."
python -m pip install --upgrade pip
pip install -r requirements.txt
cls
# Запуск бота
Write-Host "[INFO] Запуск бота..." -ForegroundColor Green
python main.py