128 lines
4.4 KiB
Markdown
128 lines
4.4 KiB
Markdown
简体中文 | [English](README.md)
|
||
|
||
<h2 align="center">Flutter OpenCode Client</h2>
|
||
|
||
<div align="center">
|
||
<a href="https://git.wqyblog.cn/wuqiyang312/flutter_opencode_client"><img alt="仓库" src="https://img.shields.io/badge/仓库-opencode-blue"></a>
|
||
<img alt="语言" src="https://img.shields.io/badge/语言-dart-cyan">
|
||
<img alt="license" src="https://img.shields.io/badge/证书-AGPLv3-yellow">
|
||
</div>
|
||
|
||
<p align="center">
|
||
基于 <a href="https://github.com/lollipopkit/flutter_server_box">ServerBox</a> 开发的 Flutter 服务器工具箱,提供 Linux、Unix、Windows 服务器状态图表和管理工具。
|
||
<br><br>
|
||
<b>新特性:</b>集成 <a href="https://opencode.ai">OpenCode</a>,支持 SSH 隧道和增强的远程开发能力。
|
||
<br><br>
|
||
特别感谢 <a href="https://github.com/TerminalStudio/dartssh2">dartssh2</a> & <a href="https://github.com/TerminalStudio/xterm.dart">xterm.dart</a>。
|
||
</p>
|
||
|
||
## 🆕 OpenCode 集成
|
||
|
||
此分支添加了 OpenCode (opencode.ai) 集成功能,通过 SSH 隧道实现:
|
||
|
||
- **远程开发**:通过安全 SSH 隧道连接到你的服务器
|
||
- **AI 驱动**:AI 能力增强的服务器管理
|
||
- **无缝工作流**:与 OpenCode 平台直接集成
|
||
|
||
## 🏙️ 截屏
|
||
|
||
<table>
|
||
<tr>
|
||
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/1.jpg"></td>
|
||
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/2.jpg"></td>
|
||
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/3.jpg"></td>
|
||
<td><img width="200px" src="https://cdn.lpkt.cn/serverbox/screenshot/4.jpg"></td>
|
||
</tr>
|
||
</table>
|
||
|
||
## 📥 安装
|
||
|
||
| 平台 | 下载源 |
|
||
|------|--------|
|
||
| Android | [GitHub](https://github.com/lollipopkit/flutter_server_box/releases) / [F-Droid](https://f-droid.org/packages/tech.lolli.toolbox) |
|
||
| iOS / macOS | [AppStore](https://apps.apple.com/app/id1586449703) |
|
||
| Linux / Windows | [GitHub](https://github.com/lollipopkit/flutter_server_box/releases) |
|
||
|
||
**自定义构建:**
|
||
```bash
|
||
git clone ssh://git@git.wqyblog.cn:2222/wuqiyang312/flutter_opencode_client.git
|
||
cd flutter_opencode_client
|
||
flutter build apk --release
|
||
```
|
||
|
||
请从 **信任** 的来源下载!
|
||
|
||
## 🔖 特点
|
||
|
||
- `状态图表`(CPU、传感器、GPU 等)、`SSH` 终端、`SFTP`、`Docker & 进程 & Systemd` 管理、`S.M.A.R.T`...
|
||
- **OpenCode 集成**:SSH 隧道支持远程开发
|
||
- 特殊支持:`生物认证`、`推送`、`桌面小部件`、`watchOS App`...
|
||
- 多语言:English、简体中文、Deutsch、繁體中文、Indonesian、Français、Dutch、Türkçe、Українська мова、Español、Русский язык、Português、日本語
|
||
|
||
## 🔧 从源码构建
|
||
|
||
### 环境要求
|
||
- Flutter SDK 3.29+
|
||
- Dart 3.11+
|
||
- Android SDK(用于 Android 构建)
|
||
- Java 17
|
||
|
||
### 快速构建
|
||
```bash
|
||
# 使用提供的构建脚本
|
||
./build_apk.sh
|
||
|
||
# 或手动构建
|
||
flutter pub get
|
||
flutter build apk --release
|
||
```
|
||
|
||
APK 将生成在 `build/app/outputs/flutter-apk/app-release.apk`
|
||
|
||
## 🆘 帮助
|
||
|
||
- 如需服务器状态推送功能,请在服务器上安装 [ServerBoxMonitor](https://github.com/lollipopkit/server_box_monitor)
|
||
- 配置详情参见 [wiki](https://github.com/lollipopkit/server_box_monitor/wiki)
|
||
- **常见问题**:[app wiki](https://github.com/lollipopkit/flutter_server_box/wiki)
|
||
|
||
提交 issue 前:
|
||
1. 粘贴 **完整日志**(点击首页右上角)
|
||
2. 确认问题是由应用引起的
|
||
3. 欢迎有效和积极的反馈
|
||
|
||
## 🧱 贡献
|
||
|
||
欢迎任何积极的贡献。
|
||
|
||
### 开发
|
||
|
||
1. 安装 [Flutter](https://flutter.dev/docs/get-started/install) 环境
|
||
2. 克隆仓库:`git clone ssh://git@git.wqyblog.cn:2222/wuqiyang312/flutter_opencode_client.git`
|
||
3. 运行 `flutter run` 启动应用
|
||
4. 运行 `dart run fl_build -p PLATFORM` 构建
|
||
|
||
### 翻译
|
||
- 参见 [指南](https://blog.lpkt.cn/posts/faq/)
|
||
- 欢迎提交 PR
|
||
|
||
## 📁 仓库
|
||
|
||
- **主仓库**: `ssh://git@git.wqyblog.cn:2222/wuqiyang312/flutter_opencode_client.git`
|
||
- **上游项目**: [lollipopkit/flutter_server_box](https://github.com/lollipopkit/flutter_server_box)
|
||
|
||
## 💡 原应用
|
||
|
||
- [ServerBox](https://github.com/lollipopkit/flutter_server_box) - 原版服务器管理应用
|
||
- [GPT Box](https://github.com/lollipopkit/flutter_gpt_box) - OpenAI API 客户端
|
||
- [More](https://github.com/lollipopkit) - 工具等
|
||
|
||
## 📝 证书
|
||
|
||
`AGPL v3 lollipopkit & all contributors`
|
||
|
||
---
|
||
|
||
<p align="center">
|
||
<i>Fork 自 ServerBox,集成 OpenCode 功能</i>
|
||
</p>
|