改 相对路径 完成客户端

This commit is contained in:
Neo
2026-01-27 22:14:01 +08:00
parent 04c064793a
commit 9f8976e75a
292 changed files with 307062 additions and 678 deletions

42
etl_billiards/run_gui.ps1 Normal file
View File

@@ -0,0 +1,42 @@
# PowerShell 启动脚本
# 飞球 ETL 管理系统
$ErrorActionPreference = "Stop"
$OutputEncoding = [System.Text.Encoding]::UTF8
Write-Host "===================================="
Write-Host " 飞球 ETL 管理系统"
Write-Host "===================================="
Write-Host ""
# 切换到脚本目录
Set-Location $PSScriptRoot
# 检查 Python
try {
$pythonVersion = python --version 2>&1
Write-Host "Python 版本: $pythonVersion"
} catch {
Write-Host "[错误] 未找到 Python请先安装 Python 3.10+" -ForegroundColor Red
Read-Host "按回车键退出"
exit 1
}
# 检查 PySide6
$hasPySide6 = python -c "import PySide6" 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Host "[提示] 正在安装 GUI 依赖..." -ForegroundColor Yellow
pip install PySide6
}
# 启动 GUI
Write-Host ""
Write-Host "正在启动 GUI..." -ForegroundColor Cyan
python -m gui.main
if ($LASTEXITCODE -ne 0) {
Write-Host ""
Write-Host "[错误] 启动失败" -ForegroundColor Red
Write-Host "请运行: pip install -r requirements.txt"
Read-Host "按回车键退出"
}