Skip to content

Commit 47f00f0

Browse files
committed
build deb package
1 parent 486d5b9 commit 47f00f0

4 files changed

Lines changed: 68 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ jobs:
2121
args: release --clean --skip=publish
2222
- name: Show Checksum
2323
run: |
24-
sha256sum dist/*.tar.gz dist/*.zip dist/*.rpm dist/*_checksums.txt
24+
sha256sum dist/*.tar.gz dist/*.zip dist/*.rpm dist/*.deb dist/*_checksums.txt
2525
- name: Upload Release Assets
2626
uses: softprops/action-gh-release@v2
2727
with:
2828
files: |
2929
dist/*.tar.gz
3030
dist/*.zip
3131
dist/*.rpm
32+
dist/*.deb
3233
dist/*_checksums.txt
3334
- name: Publish rpm to Gemfury
3435
env:

.goreleaser.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ nfpms:
6666
homepage: https://trzsz.github.io/
6767
maintainer: Lonny Wong <lonnywong@qq.com>
6868
description: |-
69-
The `tssh --udp` works like `mosh`, and the `tsshd` works like `mosh-server`.
69+
tsshd is the trzsz-ssh(tssh) server that supports connection migration for roaming.
7070
license: MIT
7171
formats:
7272
- rpm
73+
- deb
7374
bindir: /usr/bin
7475
rpm:
7576
group: Unspecified

README.cn.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,19 @@ Host xxx
192192

193193
</details>
194194

195+
- Windows 可用 scoop 安装
196+
197+
<details><summary><code>scoop install tsshd</code></summary>
198+
199+
```sh
200+
scoop bucket add extras
201+
scoop install tsshd
202+
```
203+
204+
需要允许 `C:\Users\<user>\scoop\apps\tsshd\<version>\tsshd.exe` 通过防火墙,才能正常使用。
205+
206+
</details>
207+
195208
- 用 Go 直接安装( 要求 go 1.25 以上 )
196209

197210
<details><summary><code>go install github.com/trzsz/tsshd/cmd/tsshd@latest</code></summary>
@@ -217,7 +230,25 @@ Host xxx
217230

218231
</details>
219232

220-
- 可从 [GitHub Releases](https://github.com/trzsz/tsshd/releases) 中下载,国内可从 [Gitee 发行版](https://gitee.com/trzsz/tsshd/releases) 中下载,解压并加到 `PATH` 环境变量中。
233+
- 可从 [GitHub Releases](https://github.com/trzsz/tsshd/releases) 中下载,国内可从 [Gitee 发行版](https://gitee.com/trzsz/tsshd/releases) 中下载,然后本地安装。
234+
235+
<details><summary><code>下载并本地安装</code></summary>
236+
237+
```sh
238+
sudo apt install /tmp/tsshd_*.deb
239+
240+
sudo dpkg -i /tmp/tsshd_*.deb
241+
242+
sudo dnf install /tmp/tsshd_*.rpm
243+
244+
sudo yum install /tmp/tsshd_*.rpm
245+
246+
sudo rpm -i /tmp/tsshd_*.rpm
247+
248+
tar zxvf tsshd_*.tar.gz && sudo cp tsshd_*/tsshd /usr/bin/
249+
```
250+
251+
</details>
221252

222253
## 联系方式
223254

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,19 @@ Host xxx
193193
194194
</details>
195195
196+
- Install with scoop on Windows
197+
198+
<details><summary><code>scoop install tsshd</code></summary>
199+
200+
```sh
201+
scoop bucket add extras
202+
scoop install tsshd
203+
```
204+
205+
Need to allow `C:\Users\<user>\scoop\apps\tsshd\<version>\tsshd.exe` through the firewall for it to work properly.
206+
207+
</details>
208+
196209
- Install with Go ( Requires go 1.25 or later )
197210
198211
<details><summary><code>go install github.com/trzsz/tsshd/cmd/tsshd@latest</code></summary>
@@ -218,7 +231,25 @@ Host xxx
218231
219232
</details>
220233
221-
- Download from the [GitHub Releases](https://github.com/trzsz/tsshd/releases), unzip and add to `PATH` environment.
234+
- Download from the [GitHub Releases](https://github.com/trzsz/tsshd/releases) and install locally
235+
236+
<details><summary><code>download and install locally</code></summary>
237+
238+
```sh
239+
sudo apt install /tmp/tsshd_*.deb
240+
241+
sudo dpkg -i /tmp/tsshd_*.deb
242+
243+
sudo dnf install /tmp/tsshd_*.rpm
244+
245+
sudo yum install /tmp/tsshd_*.rpm
246+
247+
sudo rpm -i /tmp/tsshd_*.rpm
248+
249+
tar zxvf tsshd_*.tar.gz && sudo cp tsshd_*/tsshd /usr/bin/
250+
```
251+
252+
</details>
222253
223254
### Contact
224255

0 commit comments

Comments
 (0)