feat: 内置并统一使用项目 ADB (#149)

This commit is contained in:
chengma
2026-08-11 12:01:07 +08:00
parent 56b1a46c5c
commit 8f2037db2f
21 changed files with 355 additions and 46 deletions
+8
View File
@@ -34,6 +34,14 @@ def data_dir() -> Path:
return directory
def app_dir() -> Path:
"""返回只读资源根目录;源码和打包运行使用同一相对结构。"""
if getattr(sys, "frozen", False):
return Path(sys._MEIPASS).resolve()
return Path(__file__).resolve().parents[1]
def default_database_path() -> Path:
"""返回默认数据库文件路径。"""