1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-17 23:13:03 +08:00

refactor(ALAboutDialog): 更改关于对话框的显示内容

主要包括版本号,提交信息,构建时间等。为 CI/CD 流程添加相关信息占位。
This commit is contained in:
2026-01-03 00:33:01 +08:00
parent 1b378e5aaa
commit 1e5452d411
3 changed files with 22 additions and 2 deletions
+6 -1
View File
@@ -20,7 +20,9 @@ from PySide6.QtCore import (
QTimer, Qt
)
from gui.AppInfo import AL_VERSION
from gui.ALVersionInfo import (
AL_VERSION, AL_COMMIT_SHA, AL_COMMIT_DATE, AL_BUILD_DATE
)
from gui.Ui_ALAboutDialog import Ui_ALAboutDialog
from gui import AutoLibraryResource
@@ -64,6 +66,9 @@ class ALAboutDialog(QDialog, Ui_ALAboutDialog):
about_text = f"""
<h4>Version Information:</h4>
Version: {AL_VERSION}<br>
Commit SHA: {AL_COMMIT_SHA}<br>
Commit date: {AL_COMMIT_DATE}<br>
Build date: {AL_BUILD_DATE}<br>
Python version: {platform.python_version()}<br>
Qt version: {self.getQtVersion()}<br>
+16
View File
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
"""
The contents of this file will automatically be updated by the
github workflow process. Do not edit manually.
This file is auto-generated during the workflow process.
Last updated:
"""
AL_VERSION = ""
AL_TAG = ""
AL_COMMIT_SHA = ""
AL_COMMIT_DATE = ""
AL_BUILD_DATE = ""
AL_VERSION_FULL = f"{AL_VERSION} ({AL_COMMIT_SHA})"
-1
View File
@@ -1 +0,0 @@
AL_VERSION = "1.0.0"