[patch] 优化版本管理显示
This commit is contained in:
@@ -2,7 +2,7 @@ name: GUI Version Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
branches: [ master, develop ] # 临时添加 develop 用于测试
|
||||
|
||||
jobs:
|
||||
gui-version-release:
|
||||
@@ -145,9 +145,11 @@ jobs:
|
||||
|
||||
$hasChanges = git diff --staged --quiet
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
# 动态获取当前分支名 (用于测试使用)
|
||||
$BRANCH = git rev-parse --abbrev-ref HEAD
|
||||
git commit -m "[skip ci] Update version to $VERSION"
|
||||
git push origin master
|
||||
Write-Host "Version changes committed and pushed"
|
||||
git push origin $BRANCH
|
||||
Write-Host "Version changes committed and pushed to $BRANCH"
|
||||
} else {
|
||||
Write-Host "No changes to commit"
|
||||
}
|
||||
|
||||
12
config.py
12
config.py
@@ -9,13 +9,13 @@ import json # 用于将令牌保存为 JSON 格式
|
||||
|
||||
# 后端服务器配置
|
||||
# BACKEND_HOST = "192.168.5.233"
|
||||
BACKEND_HOST = "192.168.5.12"
|
||||
# BACKEND_HOST = "shuidrop.com"
|
||||
# BACKEND_HOST = "192.168.5.12"
|
||||
BACKEND_HOST = "shuidrop.com"
|
||||
# BACKEND_HOST = "test.shuidrop.com"
|
||||
BACKEND_PORT = "8000"
|
||||
# BACKEND_PORT = ""
|
||||
BACKEND_WS_URL = f"ws://{BACKEND_HOST}:{BACKEND_PORT}"
|
||||
# BACKEND_WS_URL = f"wss://{BACKEND_HOST}"
|
||||
# BACKEND_PORT = "8000"
|
||||
BACKEND_PORT = ""
|
||||
# BACKEND_WS_URL = f"ws://{BACKEND_HOST}:{BACKEND_PORT}"
|
||||
BACKEND_WS_URL = f"wss://{BACKEND_HOST}"
|
||||
|
||||
# WebSocket配置
|
||||
WS_CONNECT_TIMEOUT = 16.0
|
||||
|
||||
2
main.py
2
main.py
@@ -48,7 +48,7 @@ class LoginWindow(QMainWindow):
|
||||
|
||||
def initUI(self):
|
||||
# 设置窗口基本属性
|
||||
self.setWindowTitle('AI客服智能助手')
|
||||
self.setWindowTitle(f'AI客服智能助手 v{config.APP_VERSION}')
|
||||
self.setGeometry(300, 300, 450, 300) # 进一步减小窗口尺寸
|
||||
self.setMinimumSize(420, 280) # 设置更小的最小尺寸
|
||||
self.setMaximumSize(500, 350) # 设置最大尺寸,保持紧凑
|
||||
|
||||
Reference in New Issue
Block a user