清理 dh 构建残留 (debian/<pkg>/ 临时目录不入库); gitignore 加固

This commit is contained in:
lou
2026-08-10 18:02:30 +08:00
parent 702f843577
commit 461edaddf1
3 changed files with 8 additions and 4 deletions
+4
View File
@@ -29,3 +29,7 @@ config/tasks.db
# Nuitka 编译产物
bin/
# dh 构建临时目录
/debian/*/
!/debian/source/
+1 -1
View File
@@ -2,7 +2,7 @@
440c53f84f5722b5146959c8fc6d7a23 usr/bin/sz-config
ec8cf0df841e479689ccb681f6168ccc usr/bin/sz-transfer
0ba5b8147990daa7fd07344952c42847 usr/bin/sz-tui
78aed672b874d47ecb3e9dc12b6951a8 usr/share/7z-encrypt/backup.py
1c8e2524738649398a4385a3f2a9e3c6 usr/share/7z-encrypt/backup.py
dcb31e74e0a6ee8073337fc4fb2acf99 usr/share/7z-encrypt/config.py
8a064c0b3c21d50812a3fd69a320d862 usr/share/7z-encrypt/crypto.py
21062e04f8c7f4471881a39c489dfa73 usr/share/7z-encrypt/metadata.py
+3 -3
View File
@@ -33,10 +33,10 @@ COMPRESS_SUFFIX = {".db", ".sqlite", ".sqlite3", ".sql", ".txt", ".json", ".xml"
def _7z(args: list[str]) -> None:
"""调系统 7z (p7zip-full), 失败抛异常"""
r = subprocess.run(["7z"] + args, capture_output=True, text=True, timeout=7200)
"""调系统 7z (p7zip-full), 实时透传进度输出 (7z 自带百分比进度条)"""
r = subprocess.run(["7z"] + args)
if r.returncode != 0:
raise RuntimeError(f"7z 失败: {r.stderr.strip()[-200:] or r.stdout.strip()[-200:]}")
raise RuntimeError(f"7z 失败 (exit {r.returncode})")
def _cfg() -> dict[str, Any]: