Files
2026-07-23 14:04:52 +08:00

52 lines
1.0 KiB
Markdown
Raw Permalink 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.
# updata_hfb
一个用 Go + Wails 写的桌面上传工具。打开窗口后填写服务器、上传人、上传密钥,粘贴账号数据,直接预览或上传即可。
## 本地运行
```bash
wails dev
```
Wails 程序不能直接用 `go run .` 启动;直接运行会缺少 Wails 需要的 `dev/production` 构建标签。
## 前端开发
```bash
cd frontend
npm install
npm run build
```
## Windows 打包
在 macOS 上也可以直接交叉打 Windows `exe`
```bash
wails build -platform windows/amd64 -nopackage -o updata_hfb.exe
```
我已经在这台机器上验证过,生成物在:
```bash
build/bin/updata_hfb.exe
```
如果你想要 Windows 安装包:
```bash
wails build -platform windows/amd64 -nsis
```
## 界面说明
- “连接配置”默认折叠
- 配置会自动记住上次填写的值
- 结果区会自动显示为多行 JSON
- 支持 `字段:值``字段:值`
## 对接接口
- `POST /api/open/listing-uploads`
- 如果填写密钥,会自动附带 `X-HFB-Timestamp``X-HFB-Signature`