The only downloader you need. 下载器的集大成者。
TypeScript asyncasynciobittorentbtcross-platformdownload-managerdownloaderfluent-designftphttp3magnetpyqtpyside6pythonqtquicreactsoftwarestreaming
fix(ci): 统一 BUILD_VERSION 处理 pre-release 后缀
XiaoYouChR36573ae59d59
diff --git a/android/build_apk.sh b/android/build_apk.shindex 29ff2357..6f333b80 100644--- a/android/build_apk.sh+++ b/android/build_apk.sh@@ -39,7 +39,8 @@ export GD3_APP_TITLE="${GD3_APP_TITLE:-Ghost Downloader}"export GD3_PKG_NAME="${GD3_PKG_NAME:-ghostdownloader}"export GD3_PKG_DOMAIN="${GD3_PKG_DOMAIN:-io.github.xiaoyouchr}"-export GD3_VERSION="${GD3_VERSION:-$(grep -oP '^VERSION = "\K[^"]+' "$REPO/app/config/constants.py")}"+RAW_VERSION=$(grep -oP '^VERSION = "\K[^"]+' "$REPO/app/config/constants.py")+export GD3_VERSION="${GD3_VERSION:-${RAW_VERSION%%-*}}"export GD3_QT_MODULES="${GD3_QT_MODULES:-Core,Gui,Widgets,Network,Svg,SvgWidgets,WebSockets,Xml}"echo "[build] STAGE=$STAGE"diff --git a/app/config/constants.py b/app/config/constants.pyindex b367569b..29354109 100644--- a/app/config/constants.py+++ b/app/config/constants.py@@ -1,6 +1,7 @@YEAR = 2026AUTHOR = "XiaoYouChR"VERSION = "4.3.0-rc1"+BUILD_VERSION = VERSION.split("-")[0]DESKTOP_ID = "io.github.xiaoyouchr.GhostDownloader"DESKTOP_OBJECT_PATH = "/" + DESKTOP_ID.replace(".", "/")LATEST_EXTENSION_VERSION = "2.1.3"diff --git a/scripts/deploy.py b/scripts/deploy.pyindex 479a81f8..c18291bb 100644--- a/scripts/deploy.py+++ b/scripts/deploy.py@@ -10,9 +10,7 @@ from pathlib import PathREPO = Path(__file__).resolve().parent.parentsys.path.insert(0, str(REPO))-from app.config.constants import VERSION, YEAR, AUTHOR, DESKTOP_ID--FILE_VERSION = VERSION.split("-")[0]+from app.config.constants import VERSION, BUILD_VERSION, YEAR, AUTHOR, DESKTOP_IDMACOS_DOCUMENT_TYPES = [{"name": "种子文件", "extensions": ["torrent"], "icon": "torrent"},@@ -140,8 +138,8 @@ def buildArgs() -> list[str]:'--include-data-dir=app/assets/file_icons=app/assets/file_icons','--company-name=XiaoYouChR','--product-name="Ghost Downloader"',- f'--file-version={FILE_VERSION}',- f'--product-version={FILE_VERSION}',+ f'--file-version={BUILD_VERSION}',+ f'--product-version={BUILD_VERSION}','--file-description="Ghost Downloader"',f'--copyright="Copyright(C) {YEAR} {AUTHOR}"','--output-dir=dist',@@ -158,7 +156,7 @@ def buildArgs() -> list[str]:"--macos-create-app-bundle","--assume-yes-for-downloads","--macos-app-mode=gui",- f"--macos-app-version={FILE_VERSION}",+ f"--macos-app-version={BUILD_VERSION}","--macos-app-icon=app/assets/logo.icns",f'--copyright="Copyright(C) {YEAR} {AUTHOR}"','--output-dir=dist',