mirror of
https://github.com/KenanZhu/AutoLibrary.git
synced 2026-06-18 07:23:03 +08:00
refactor(ALAboutDialog): 更改关于对话框的显示内容
主要包括版本号,提交信息,构建时间等。为 CI/CD 流程添加相关信息占位。
This commit is contained in:
@@ -20,7 +20,9 @@ from PySide6.QtCore import (
|
|||||||
QTimer, Qt
|
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.Ui_ALAboutDialog import Ui_ALAboutDialog
|
||||||
|
|
||||||
from gui import AutoLibraryResource
|
from gui import AutoLibraryResource
|
||||||
@@ -64,6 +66,9 @@ class ALAboutDialog(QDialog, Ui_ALAboutDialog):
|
|||||||
about_text = f"""
|
about_text = f"""
|
||||||
<h4>Version Information:</h4>
|
<h4>Version Information:</h4>
|
||||||
Version: {AL_VERSION}<br>
|
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>
|
Python version: {platform.python_version()}<br>
|
||||||
Qt version: {self.getQtVersion()}<br>
|
Qt version: {self.getQtVersion()}<br>
|
||||||
|
|
||||||
|
|||||||
@@ -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 +0,0 @@
|
|||||||
AL_VERSION = "1.0.0"
|
|
||||||
Reference in New Issue
Block a user