feat: add deb packaging and Gitea Actions automated release workflow
Build and Release / Build & Release DEB Package (push) Failing after 1m16s
Build and Release / Build & Release DEB Package (push) Failing after 1m16s
This commit is contained in:
@@ -42,16 +42,27 @@
|
||||
|
||||
---
|
||||
|
||||
## 🚀 启动与构建
|
||||
## 🚀 启动与打包构建
|
||||
|
||||
```bash
|
||||
# 启动开发终端
|
||||
# 1. 启动开发终端
|
||||
npm start
|
||||
|
||||
# 若 Node ABI 变动,重新编译底层 node-pty
|
||||
# 2. 本地一键打包生成 Linux .deb 安装包 (生成于 dist/ 目录)
|
||||
npm run package:deb
|
||||
|
||||
# 3. 安装生成的 deb 包
|
||||
sudo dpkg -i dist/hatty_1.0.0_amd64.deb
|
||||
|
||||
# 4. 若 Node ABI 变动,重新编译底层 node-pty
|
||||
npm run rebuild
|
||||
```
|
||||
|
||||
### 🤖 Gitea Actions 自动化发版
|
||||
项目已配置 Gitea Actions 流水线(`.gitea/workflows/release.yaml`):
|
||||
- 推送以 `v` 开头的标签(如 `git tag v1.0.0 && git push origin v1.0.0`)会自动触发编译打包,并把 `.deb` 安装包作为附件发布到 Gitea Releases。
|
||||
- 也可以在 Gitea 仓库页面中手动点击 **Actions -> Run workflow** 触发发布。
|
||||
|
||||
---
|
||||
|
||||
## 🛠️ 架构分层
|
||||
|
||||
Reference in New Issue
Block a user