From 512fdffb97b46e257353289e87e8fc456105559c Mon Sep 17 00:00:00 2001 From: lou Date: Mon, 10 Aug 2026 16:03:10 +0800 Subject: [PATCH] =?UTF-8?q?deb=20=E5=8F=8C=E5=8C=85:=20=E6=BA=90=E7=A0=81?= =?UTF-8?q?=E7=89=88=20all=20(=E6=89=8B=E6=9C=BA)=20+=20=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E7=89=88=20amd64=20(Nuitka=20=E4=BA=8C=E8=BF=9B=E5=88=B6);=20p?= =?UTF-8?q?7zip-full=20=E4=BE=9D=E8=B5=96;=20README=20Releases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 ++++++++---- .../dh_installchangelogs.dch.trimmed | 7 +++++ .../installed-by-dh_installdocs | 0 debian/7z-encrypt-client-bin.substvars | 3 ++ debian/7z-encrypt-client-bin/DEBIAN/control | 15 ++++++++++ debian/7z-encrypt-client-bin/DEBIAN/md5sums | 5 ++++ .../doc/7z-encrypt-client-bin/changelog.gz | Bin 0 -> 314 bytes .../share/doc/7z-encrypt-client-bin/copyright | 27 ++++++++++++++++++ debian/7z-encrypt-client/DEBIAN/control | 12 +++----- debian/control | 22 ++++++++------ debian/debhelper-build-stamp | 1 + debian/files | 1 + debian/rules | 10 +++++-- 13 files changed, 98 insertions(+), 23 deletions(-) create mode 100644 debian/.debhelper/generated/7z-encrypt-client-bin/dh_installchangelogs.dch.trimmed create mode 100644 debian/.debhelper/generated/7z-encrypt-client-bin/installed-by-dh_installdocs create mode 100644 debian/7z-encrypt-client-bin.substvars create mode 100644 debian/7z-encrypt-client-bin/DEBIAN/control create mode 100644 debian/7z-encrypt-client-bin/DEBIAN/md5sums create mode 100644 debian/7z-encrypt-client-bin/usr/share/doc/7z-encrypt-client-bin/changelog.gz create mode 100644 debian/7z-encrypt-client-bin/usr/share/doc/7z-encrypt-client-bin/copyright diff --git a/README.md b/README.md index 52ee5b7..2a51b9d 100644 --- a/README.md +++ b/README.md @@ -170,13 +170,17 @@ TUI 自动优先调用编译产物(`bin/sz-transfer`),无则回退源码 ```bash # 构建 (需 debhelper): dpkg-buildpackage -us -uc -b -# 生成 ../7z-encrypt-client_1.0.0_all.deb +# 生成 ../7z-encrypt-client_1.0.0_all.deb (源码版, 手机用) +# ../7z-encrypt-client-bin_1.0.0_amd64.deb (x86_64 编译版) -# 手机上 (ZeroTermux PRoot Ubuntu) 安装: -apt install -y python3 python3-venv +# 手机上 (ZeroTermux PRoot Ubuntu) 安装源码版: +apt install -y python3 python3-venv p7zip-full dpkg -i 7z-encrypt-client_1.0.0_all.deb # postinst 自动建 venv + 装 cryptography/tqdm -# 使用: +# x86_64 本机安装编译版 (Nuitka 原生, 免 Python): +sudo dpkg -i 7z-encrypt-client-bin_1.0.0_amd64.deb # 依赖 p7zip-full + +# 使用 (两版相同): sz-config --init # 首次: 生成 ~/.config/7z-encrypt/config.json sz-config --set-server http://服务器:8000 sz-config --set-token 你的token @@ -186,7 +190,11 @@ sz-tui # TUI (登录门禁, 中文菜单) # 换机密钥: 旧机导出 keyring -> 手机 ~/.local/share/7z-encrypt/keyring.json (权限 600) ``` -依赖: `python3 >= 3.10` + `cryptography >= 50.0.0`(cobblestone 流式加密,postinst 自动装最新版)。 +依赖: 源码版 `python3 >= 3.10` + `cryptography >= 50.0.0`(cobblestone 流式加密,postinst 自动装最新版);编译版无 Python 依赖。两版都需要 `p7zip-full`(7z 压缩)。 + +## Releases 下载 + +Gitee / Gitea 仓库 Releases 页下载 deb 包(tag v1.0.0): ## 测试 diff --git a/debian/.debhelper/generated/7z-encrypt-client-bin/dh_installchangelogs.dch.trimmed b/debian/.debhelper/generated/7z-encrypt-client-bin/dh_installchangelogs.dch.trimmed new file mode 100644 index 0000000..8cad0fd --- /dev/null +++ b/debian/.debhelper/generated/7z-encrypt-client-bin/dh_installchangelogs.dch.trimmed @@ -0,0 +1,7 @@ +7z-encrypt-client (1.0.0) unstable; urgency=medium + + * 首个 Termux/PRoot 适配版: 配置 XDG 化 + venv 依赖自建 + * sz-transfer / sz-tui / sz-config 三个命令 + * 零知识 + 零合并 + 文件名加密 + 账号体系 + 登录门禁 + + -- edgevoid Mon, 10 Aug 2026 16:00:00 +0800 diff --git a/debian/.debhelper/generated/7z-encrypt-client-bin/installed-by-dh_installdocs b/debian/.debhelper/generated/7z-encrypt-client-bin/installed-by-dh_installdocs new file mode 100644 index 0000000..e69de29 diff --git a/debian/7z-encrypt-client-bin.substvars b/debian/7z-encrypt-client-bin.substvars new file mode 100644 index 0000000..6249e09 --- /dev/null +++ b/debian/7z-encrypt-client-bin.substvars @@ -0,0 +1,3 @@ +shlibs:Depends=libc6 (>= 2.34) +misc:Depends= +misc:Pre-Depends= diff --git a/debian/7z-encrypt-client-bin/DEBIAN/control b/debian/7z-encrypt-client-bin/DEBIAN/control new file mode 100644 index 0000000..07846f7 --- /dev/null +++ b/debian/7z-encrypt-client-bin/DEBIAN/control @@ -0,0 +1,15 @@ +Package: 7z-encrypt-client-bin +Source: 7z-encrypt-client +Version: 1.0.0 +Architecture: amd64 +Maintainer: edgevoid +Installed-Size: 36459 +Depends: p7zip-full +Conflicts: 7z-encrypt-client +Replaces: 7z-encrypt-client +Section: utils +Priority: optional +Description: 端到端加密文件传输客户端 (x86_64 原生编译版) + Nuitka 编译的原生二进制 (Python->C->gcc, onefile 自包含, 免 Python 依赖)。 + 功能与源码版一致: sz-transfer / sz-tui / sz-config。 + 配置 ~/.config/7z-encrypt/, 密钥 ~/.local/share/7z-encrypt/。 diff --git a/debian/7z-encrypt-client-bin/DEBIAN/md5sums b/debian/7z-encrypt-client-bin/DEBIAN/md5sums new file mode 100644 index 0000000..14210d5 --- /dev/null +++ b/debian/7z-encrypt-client-bin/DEBIAN/md5sums @@ -0,0 +1,5 @@ +61901c8e9af062eef5c386c715f5f3bb usr/bin/sz-config +02b57eea9c5ca54c63fd82da1d6d960b usr/bin/sz-transfer +8f9902ebfd228e08f7691abe6d471d86 usr/bin/sz-tui +198943ad7a94f6ba0995cf2d326f66d4 usr/share/doc/7z-encrypt-client-bin/changelog.gz +fadf3972cc61c7c76d0ccc20b29a804c usr/share/doc/7z-encrypt-client-bin/copyright diff --git a/debian/7z-encrypt-client-bin/usr/share/doc/7z-encrypt-client-bin/changelog.gz b/debian/7z-encrypt-client-bin/usr/share/doc/7z-encrypt-client-bin/changelog.gz new file mode 100644 index 0000000000000000000000000000000000000000..df135992765c28b8bd19bb862b67e44cfb4c82a9 GIT binary patch literal 314 zcmV-A0mc3wiwFP!0000212vCNOT$1A#qa$Tb5v{6Z4XuI9~1;nf`|vNHJOG$vs*UV zVtZ0S+ls}C7!eUYXptWDpw?=LpC)UPZ{gY^49xE_!+X5BriRqujhd$!RU4@XQ+b`} zWEuo@z4C4q7eH`J{WO*wG;QHzG5|A>_WfuyfNkWC*voBhG3G(Kf0!P1<4(H-e>;4J zowaq4r#@t%jDE)ZTUG={NuNxK*_E=xtHT>^46DUA5nM_zXnRi*MST#)2pYrf1oO8 z8lY)mo!KTV{?m$Zk-Iu&9Bb8vZrL89ZZKyVV1vD`(5H*k`^Mqu6 M0f#Cm8At&D08Fxvj{pDw literal 0 HcmV?d00001 diff --git a/debian/7z-encrypt-client-bin/usr/share/doc/7z-encrypt-client-bin/copyright b/debian/7z-encrypt-client-bin/usr/share/doc/7z-encrypt-client-bin/copyright new file mode 100644 index 0000000..7d292b7 --- /dev/null +++ b/debian/7z-encrypt-client-bin/usr/share/doc/7z-encrypt-client-bin/copyright @@ -0,0 +1,27 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: 7z-encrypt +Upstream-Contact: edgevoid +Source: https://gitee.com/edgevoid/7z-encrypt + +Files: * +Copyright: 2026 edgevoid +License: MIT + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/debian/7z-encrypt-client/DEBIAN/control b/debian/7z-encrypt-client/DEBIAN/control index 2b41e33..21ec9fd 100644 --- a/debian/7z-encrypt-client/DEBIAN/control +++ b/debian/7z-encrypt-client/DEBIAN/control @@ -3,17 +3,13 @@ Version: 1.0.0 Architecture: all Maintainer: edgevoid Installed-Size: 101 -Depends: python3 (>= 3.10), python3-venv +Depends: python3 (>= 3.10), python3-venv, p7zip-full Section: utils Priority: optional -Description: 端到端加密文件传输客户端 (Termux/PRoot 适配版) +Description: 端到端加密文件传输客户端 (源码版, 手机/Termux 用) 零知识 + 零合并的文件安全传输客户端: 7z 压缩 -> cobblestone 加密 -> 分卷上传; 下载逐卷拉取本地解密。 服务端无密钥不解密, 文件名也加密 (enc: URL-safe base64)。 . - 包含: - * sz-transfer CLI (上传/下载/列表/删除/配额/账号) - * sz-tui 终端界面 (登录门禁, 12 项菜单) - * sz-config 配置 (服务器/token/密钥) - . - 配置存 ~/.config/7z-encrypt/, 密钥存 ~/.local/share/7z-encrypt/。 + 包含: sz-transfer CLI / sz-tui 终端界面 / sz-config 配置 + 配置 ~/.config/7z-encrypt/, 密钥 ~/.local/share/7z-encrypt/。 diff --git a/debian/control b/debian/control index 5aa69da..e495ce1 100644 --- a/debian/control +++ b/debian/control @@ -7,15 +7,21 @@ Standards-Version: 4.6.2 Package: 7z-encrypt-client Architecture: all -Depends: python3 (>= 3.10), python3-venv -Description: 端到端加密文件传输客户端 (Termux/PRoot 适配版) +Depends: python3 (>= 3.10), python3-venv, p7zip-full +Description: 端到端加密文件传输客户端 (源码版, 手机/Termux 用) 零知识 + 零合并的文件安全传输客户端: 7z 压缩 -> cobblestone 加密 -> 分卷上传; 下载逐卷拉取本地解密。 服务端无密钥不解密, 文件名也加密 (enc: URL-safe base64)。 . - 包含: - * sz-transfer CLI (上传/下载/列表/删除/配额/账号) - * sz-tui 终端界面 (登录门禁, 12 项菜单) - * sz-config 配置 (服务器/token/密钥) - . - 配置存 ~/.config/7z-encrypt/, 密钥存 ~/.local/share/7z-encrypt/。 + 包含: sz-transfer CLI / sz-tui 终端界面 / sz-config 配置 + 配置 ~/.config/7z-encrypt/, 密钥 ~/.local/share/7z-encrypt/。 + +Package: 7z-encrypt-client-bin +Architecture: amd64 +Depends: p7zip-full +Conflicts: 7z-encrypt-client +Replaces: 7z-encrypt-client +Description: 端到端加密文件传输客户端 (x86_64 原生编译版) + Nuitka 编译的原生二进制 (Python->C->gcc, onefile 自包含, 免 Python 依赖)。 + 功能与源码版一致: sz-transfer / sz-tui / sz-config。 + 配置 ~/.config/7z-encrypt/, 密钥 ~/.local/share/7z-encrypt/。 diff --git a/debian/debhelper-build-stamp b/debian/debhelper-build-stamp index fa19433..53f9f9c 100644 --- a/debian/debhelper-build-stamp +++ b/debian/debhelper-build-stamp @@ -1 +1,2 @@ 7z-encrypt-client +7z-encrypt-client-bin diff --git a/debian/files b/debian/files index a881b4a..254bca8 100644 --- a/debian/files +++ b/debian/files @@ -1,2 +1,3 @@ +7z-encrypt-client-bin_1.0.0_amd64.deb utils optional architecture=amd64 7z-encrypt-client_1.0.0_all.deb utils optional architecture=all 7z-encrypt-client_1.0.0_amd64.buildinfo utils optional diff --git a/debian/rules b/debian/rules index 9f83f7f..56fb255 100755 --- a/debian/rules +++ b/debian/rules @@ -7,12 +7,11 @@ override_dh_auto_build: override_dh_auto_test: override_dh_auto_install: - # 客户端源码 + # --- 源码版 (all): 客户端源码 + wrapper --- mkdir -p debian/7z-encrypt-client/usr/share/7z-encrypt cp transfer.py metadata.py crypto.py splitter.py config.py state.py \ debian/7z-encrypt-client/usr/share/7z-encrypt/ cp ../tui/scripts/tui.py debian/7z-encrypt-client/usr/share/7z-encrypt/ - # CLI wrapper mkdir -p debian/7z-encrypt-client/usr/bin printf '#!/bin/sh\nexec /usr/share/7z-encrypt/.venv/bin/python /usr/share/7z-encrypt/transfer.py "$$@"\n' \ > debian/7z-encrypt-client/usr/bin/sz-transfer @@ -23,3 +22,10 @@ override_dh_auto_install: chmod 755 debian/7z-encrypt-client/usr/bin/sz-transfer \ debian/7z-encrypt-client/usr/bin/sz-tui \ debian/7z-encrypt-client/usr/bin/sz-config + # --- 编译版 (amd64): Nuitka 二进制 --- + mkdir -p debian/7z-encrypt-client-bin/usr/bin + cp bin/sz-transfer bin/sz-config debian/7z-encrypt-client-bin/usr/bin/ + cp ../tui/bin/sz-tui debian/7z-encrypt-client-bin/usr/bin/ + chmod 755 debian/7z-encrypt-client-bin/usr/bin/sz-transfer \ + debian/7z-encrypt-client-bin/usr/bin/sz-tui \ + debian/7z-encrypt-client-bin/usr/bin/sz-config