From ac7d75e34c0efef17b043b3b168452f4fb0d1b1c Mon Sep 17 00:00:00 2001 From: gitee-bot Date: Fri, 11 Jul 2025 14:30:53 +0000 Subject: [PATCH] Update README.md --- README.md | 90 ++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 62 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 6ce8942..3313899 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,62 @@ -# aptss - -`aptss` is a part of [Spark APP Store](https://gitee.com/spark-store-project/spark-store). aptss is used to provide GXDE package manage ability. - -This package is provided in case some user don't wan't to use Spark APP Store but still need download accelerate. - -You can customize your apt-fast conf at /etc/aptss/apt-fast.conf - -```bash - -# 定义默认的配置文件列表(按加载顺序排列) -CONFIG_FILES=( - "/tmp/aptss-conf/apt-fast.conf" # 原始配置文件位置 - "/etc/aptss/apt-fast.conf" # 系统级配置 -) - - -# 按顺序加载所有配置文件 -for conf_file in "${CONFIG_FILES[@]}"; do - if [ -e "$conf_file" ]; then - source "$conf_file" - fi -done - - -``` - -配置文件内容请参考 `/tmp/apt-fast.conf` \ No newline at end of file + + +``` +# aptss + +aptss 是一个用于处理软件包管理与系统更新相关任务的脚本工具集合。该工具集旨在简化 APT(Advanced Package Tool)的使用,并为系统更新提供更友好的交互方式。 + +## 功能简介 + +- 提供脚本化的 APT 配置与操作工具。 +- 支持多语言提示与交互(如英文、简体中文等)。 +- 包含桌面系统升级、更新通知等实用功能。 + +## 目录结构说明 + +- `src/opt/durapps/spark-store/bin/`:主要脚本工具存放目录,包含更新、升级、语言支持等相关脚本。 +- `src/usr/share/aptss/transhell/`:存放多语言翻译文件,支持 `aptss` 的本地化界面。 +- `src/usr/share/bash-completion/completions/aptss`:Bash 自动补全脚本。 +- `debian/`:Debian 软件包构建相关文件。 + +## 主要组件 + +- `ss-do-upgrade.sh`:处理系统升级任务,支持从 `.desktop` 文件中获取软件包信息。 +- `ss-update-notifier.sh`:负责检测更新并发送通知,支持网络检测与重试机制。 +- `ss-apt-fast`:快速配置 APT 下载源。 +- `bashimport/`:包含 `log.amber` 和 `transhell.amber`,用于日志记录与多语言支持。 +- `store-helper/`:辅助脚本,如检查是否安装、权限处理、认证传递等。 + +## 使用方法 + +1. **执行系统升级**: + ```bash + ./ss-do-upgrade.sh + ``` + +2. **更新通知器**: + ```bash + ./ss-update-notifier.sh + ``` + +3. **APT 配置快速设置**: + ```bash + ./ss-apt-fast + ``` + +4. **多语言支持**: + 根据系统语言环境自动加载对应语言文件,如 `ss-do-upgrade.sh_zh_CN.transhell`。 + +## 贡献指南 + +欢迎提交 Issue 和 Pull Request。请确保你的修改与项目的目标一致,并遵循开源协议。 + +## 协议 + +本项目遵循开源协议,请查看 `LICENSE` 文件以获取详细信息。 + +## 注意事项 + +- 请确保你有足够的权限运行相关脚本(通常需要 root 权限)。 +- 部分脚本依赖于 `zenity` 或 `notify-send` 以提供图形化提示。 + +``` \ No newline at end of file -- Gitee