集成 venv 方案: 安装脚本 + 服务文件适配虚拟环境

- install.sh: 创建 .venv、安装 adbutils、生成包装脚本使用 venv python
- padsleep.service: ExecStart 指向 .venv/bin/python3
- requirements.txt: 添加 venv 安装说明
- 解决 PEP 668 (externally-managed-environment) 问题
This commit is contained in:
kushidou
2026-07-10 19:45:50 +08:00
parent 36fe0bb4fd
commit e17d03cea9
3 changed files with 44 additions and 10 deletions
+4
View File
@@ -1,4 +1,8 @@
# padsleep_adb 依赖
# 安装方式(在项目目录下):
# python3 -m venv .venv
# .venv/bin/pip install -r requirements.txt
adbutils>=2.12.0
# 系统依赖:adb (Android Debug Bridge)