Files
havline-native/README.md
T

48 lines
957 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Havline Native fnOS 应用
本目录保存 Havline 的飞牛 Native 应用工程,不依赖 Docker。
本仓库完全独立,包含:
- `app-src/`:Havline 主程序源码副本
- `havline/`:飞牛 Native 应用打包工程
- `fnpack.exe`:飞牛打包工具
- `build.ps1`:从 `app-src` 构建双架构二进制并打包
构建过程不再引用 `F:\Fonu-main\havline`。
阶段一范围:
- Go 主程序原生运行
- 统一网关 `/app/havline`
- Unix Socket `app.sock`
- `cmd/main` 启动、停止和状态检查
- amd64 与 arm64 双架构二进制
当前不包含:
- Nginx 二进制
- frpc
- cloudflared
这些依赖将在后续阶段加入。
## 构建
```powershell
cd F:\Fonu-main\fnos-native
.\build.ps1
```
输出:
```text
dist/havline-native-1.9.0.fpk
```
构建脚本会:
1. 使用 `VITE_BASE_PATH=/app/havline/` 构建前端;
2. 交叉编译 amd64 与 arm64 Go 二进制;
3. 调用 `fnpack build` 打包。