mirror of
https://github.com/arch3rPro/1Panel-Appstore.git
synced 2026-04-14 16:07:13 +08:00
feat: update README.md
This commit is contained in:
149
README.md
149
README.md
@@ -28,6 +28,81 @@
|
||||
- 不对任何原始镜像的有效性做出任何明示或暗示的保证或声明,安全性和风险自查
|
||||
- 个人仓库,可以Fork后自行更新,但是严禁未经授权,私自删除个人信息后合并发布
|
||||
|
||||
|
||||
### 🚀 使用方法
|
||||
|
||||
#### 📋 添加脚本到 1Panel 计划任务
|
||||
|
||||
1. 在 1Panel 控制面板中,进入"计划任务"页面。
|
||||
2. 点击"新增任务",选择任务类型为"Shell 脚本"。
|
||||
3. 在脚本框中粘贴以下代码:
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
|
||||
# 清理旧的临时目录
|
||||
rm -rf /tmp/appstore_merge
|
||||
|
||||
# 克隆 appstore-arch3rPro
|
||||
git clone --depth=1 https://ghfast.top/https://github.com/arch3rPro/1Panel-Appstore /tmp/appstore_merge/appstore-arch3rPro
|
||||
|
||||
# 复制 数据(完整复制)
|
||||
cp -rf /tmp/appstore_merge/appstore-arch3rPro/apps/* /opt/1panel/resource/apps/local/
|
||||
|
||||
# 清理临时目录
|
||||
rm -rf /tmp/appstore_merge
|
||||
echo "应用商店数据已更新"
|
||||
```
|
||||
|
||||
### 🤖 使用 AI 快速生成应用配置
|
||||
|
||||
本仓库提供了 Skill 配置,支持在 Cursor、Windsurf、Claude Code 等 AI 客户端中快速生成 1Panel 应用配置。
|
||||
|
||||
#### 📁 Skills 目录结构
|
||||
|
||||
```
|
||||
skills/
|
||||
├── SKILL.md # 1Panel App Builder 技能定义
|
||||
├── README.md # 使用文档
|
||||
├── templates/ # 配置模板
|
||||
│ ├── data.yml.tpl # 应用元数据模板
|
||||
│ └── docker-compose.yml.tpl # 编排文件模板
|
||||
├── scripts/ # 工具脚本
|
||||
│ ├── generate-app.sh # 主生成脚本
|
||||
│ ├── download-icon.sh # 图标下载工具
|
||||
│ └── validate-app.sh # 配置验证工具
|
||||
├── references/ # 参考示例
|
||||
│ └── 1panel-examples.md
|
||||
└── examples/ # 使用示例
|
||||
└── example-usage.md
|
||||
```
|
||||
|
||||
#### 💡 使用示例
|
||||
|
||||
只需向 AI 提供以下任一信息,即可自动生成完整的应用配置:
|
||||
|
||||
```
|
||||
# GitHub 项目
|
||||
添加应用 AList https://github.com/alist-org/alist
|
||||
|
||||
# docker-compose 文件
|
||||
根据这个 docker-compose.yml 生成 1Panel 应用配置
|
||||
|
||||
# docker run 命令
|
||||
将这个 docker run 命令转换为 1Panel 应用:
|
||||
docker run -d --name=nginx -p 80:80 nginx:latest
|
||||
```
|
||||
|
||||
#### ✨ AI 生成的配置包含
|
||||
|
||||
- `data.yml` - 应用元数据(顶层)
|
||||
- `version/data.yml` - 参数定义(表单字段)
|
||||
- `docker-compose.yml` - Docker 编排文件
|
||||
- `README.md` - 中文文档
|
||||
- `README_en.md` - 英文文档
|
||||
- `logo.png` - 应用图标
|
||||
|
||||
|
||||
### 📱 应用列表
|
||||
|
||||
以下是当前在本仓库中提供的应用列表及其版本信息,**点击应用名称可查看应用详细介绍文档**
|
||||
@@ -1191,79 +1266,7 @@ AI驱动的开源代码知识库与文档协作平台,支持多模型、多数
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
### 🚀 使用方法
|
||||
|
||||
#### 📋 添加脚本到 1Panel 计划任务
|
||||
|
||||
1. 在 1Panel 控制面板中,进入"计划任务"页面。
|
||||
2. 点击"新增任务",选择任务类型为"Shell 脚本"。
|
||||
3. 在脚本框中粘贴以下代码:
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
|
||||
# 清理旧的临时目录
|
||||
rm -rf /tmp/appstore_merge
|
||||
|
||||
# 克隆 appstore-arch3rPro
|
||||
git clone --depth=1 https://ghfast.top/https://github.com/arch3rPro/1Panel-Appstore /tmp/appstore_merge/appstore-arch3rPro
|
||||
|
||||
# 复制 数据(完整复制)
|
||||
cp -rf /tmp/appstore_merge/appstore-arch3rPro/apps/* /opt/1panel/resource/apps/local/
|
||||
|
||||
# 清理临时目录
|
||||
rm -rf /tmp/appstore_merge
|
||||
echo "应用商店数据已更新"
|
||||
```
|
||||
|
||||
### 🤖 使用 AI 快速生成应用配置
|
||||
|
||||
本仓库提供了 Skill 配置,支持在 Cursor、Windsurf、Claude Code 等 AI 客户端中快速生成 1Panel 应用配置。
|
||||
|
||||
#### 📁 Skills 目录结构
|
||||
|
||||
```
|
||||
skills/
|
||||
├── SKILL.md # 1Panel App Builder 技能定义
|
||||
├── README.md # 使用文档
|
||||
├── templates/ # 配置模板
|
||||
│ ├── data.yml.tpl # 应用元数据模板
|
||||
│ └── docker-compose.yml.tpl # 编排文件模板
|
||||
├── scripts/ # 工具脚本
|
||||
│ ├── generate-app.sh # 主生成脚本
|
||||
│ ├── download-icon.sh # 图标下载工具
|
||||
│ └── validate-app.sh # 配置验证工具
|
||||
├── references/ # 参考示例
|
||||
│ └── 1panel-examples.md
|
||||
└── examples/ # 使用示例
|
||||
└── example-usage.md
|
||||
```
|
||||
|
||||
#### 💡 使用示例
|
||||
|
||||
只需向 AI 提供以下任一信息,即可自动生成完整的应用配置:
|
||||
|
||||
```
|
||||
# GitHub 项目
|
||||
添加应用 AList https://github.com/alist-org/alist
|
||||
|
||||
# docker-compose 文件
|
||||
根据这个 docker-compose.yml 生成 1Panel 应用配置
|
||||
|
||||
# docker run 命令
|
||||
将这个 docker run 命令转换为 1Panel 应用:
|
||||
docker run -d --name=nginx -p 80:80 nginx:latest
|
||||
```
|
||||
|
||||
#### ✨ AI 生成的配置包含
|
||||
|
||||
- `data.yml` - 应用元数据(顶层)
|
||||
- `version/data.yml` - 参数定义(表单字段)
|
||||
- `docker-compose.yml` - Docker 编排文件
|
||||
- `README.md` - 中文文档
|
||||
- `README_en.md` - 英文文档
|
||||
- `logo.png` - 应用图标
|
||||
|
||||
<!-- 橙色风格 -->
|
||||
|
||||
!\[Copyright-arch3rPro]\(https\://img.shields.io/badge/Copyright-arch3rPro-ff9800?style=flat\&logo=github\&logoColor=white null)
|
||||

|
||||
|
||||
Reference in New Issue
Block a user