feat: 初始提交 - Code Server Bridge完整实现
- OAuth认证系统(Gitea + Lua扩展) - Git自动化操作(本地/SSH远程) - 实时进度WebSocket推送 - 现代化Tab界面UI - Cobra CLI命令行(init/version/serve) - 完整构建系统(Makefile + Taskfile) - UPX压缩支持(体积减少70%)
This commit is contained in:
68
BUILD.md
Normal file
68
BUILD.md
Normal file
@@ -0,0 +1,68 @@
|
||||
# Code Server Bridge
|
||||
|
||||
## 构建项目
|
||||
|
||||
项目提供两种构建方式:
|
||||
|
||||
### 使用 Make
|
||||
|
||||
```bash
|
||||
# 查看所有可用命令
|
||||
make help
|
||||
|
||||
# 构建当前平台
|
||||
make build
|
||||
|
||||
# 构建所有平台
|
||||
make build-all
|
||||
|
||||
# 打包发布版本
|
||||
make package
|
||||
|
||||
# 开发模式运行
|
||||
make dev
|
||||
|
||||
# 清理构建产物
|
||||
make clean
|
||||
```
|
||||
|
||||
### 使用 Task
|
||||
|
||||
安装Task: https://taskfile.dev/installation/
|
||||
|
||||
```bash
|
||||
# 查看所有任务
|
||||
task --list
|
||||
|
||||
# 构建当前平台
|
||||
task build
|
||||
|
||||
# 构建所有平台
|
||||
task build:all
|
||||
|
||||
# 打包发布版本
|
||||
task package
|
||||
|
||||
# 开发模式运行
|
||||
task dev
|
||||
|
||||
# 清理构建产物
|
||||
task clean
|
||||
|
||||
# 运行测试
|
||||
task test
|
||||
|
||||
# 代码格式化
|
||||
task fmt
|
||||
```
|
||||
|
||||
## 构建产物
|
||||
|
||||
- `code-server-bridge` - 当前平台可执行文件
|
||||
- `bin/` - 多平台构建输出
|
||||
- `releases/` - 打包的发布文件
|
||||
|
||||
## 支持平台
|
||||
|
||||
- Linux: amd64, arm64
|
||||
- Windows: amd64
|
||||
Reference in New Issue
Block a user