feat: add versioned release packaging

This commit is contained in:
chengma
2026-07-07 14:21:30 +08:00
parent 148c4a73eb
commit 7838554c3d
14 changed files with 407 additions and 113 deletions
+3 -2
View File
@@ -6,6 +6,7 @@ import os
import sys
from .. import appconfig
from ..version import APP_NAME, display_name
from . import widgets as _widgets
from .widgets import *
@@ -33,7 +34,7 @@ if QT_IMPORT_ERROR is None:
else:
class MainWindow(QMainWindow):
def __init__(self):
raise RuntimeError("蝦皮圈優化助手 GUI 无法启动:当前 Python 环境未安装 PySide6。")
raise RuntimeError(f"{APP_NAME} GUI 无法启动:当前 Python 环境未安装 PySide6。")
def _ensure_offscreen_for_headless_tests():
@@ -43,7 +44,7 @@ def _ensure_offscreen_for_headless_tests():
def main() -> int:
if QT_IMPORT_ERROR is not None:
print("蝦皮圈優化助手 GUI 无法启动:当前 Python 环境未安装 PySide6。")
print(f"{APP_NAME} GUI 无法启动:当前 Python 环境未安装 PySide6。")
return 1
_ensure_offscreen_for_headless_tests()
app = QApplication.instance() or QApplication(sys.argv)