Skip to content

Commit fde310b

Browse files
authored
Snap created and ready for publication (tsl0922#1003)
1 parent 2f7e0e0 commit fde310b

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ brew install ttyd
3131
## Install on Linux
3232

3333
- Binary version (recommended): download from the [releases](https://github.com/tsl0922/ttyd/releases) page.
34+
35+
- Install the snap:
36+
37+
`sudo snap install ttyd --classic`
38+
39+
3440
- Build from source (debian/ubuntu):
3541

3642
```bash

snap/snapcraft.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: ttyd
2+
adopt-info: ttyd
3+
summary: Share your terminal over the web
4+
description: |
5+
ttyd is a simple command-line tool for sharing terminal over the web
6+
7+
grade: stable
8+
confinement: classic
9+
base: core20
10+
compression: lzo
11+
12+
license: MIT
13+
14+
assumes:
15+
- command-chain
16+
17+
apps:
18+
ttyd:
19+
command: usr/bin/ttyd
20+
command-chain:
21+
- bin/homeishome-launch
22+
23+
parts:
24+
ttyd:
25+
source: https://github.com/tsl0922/ttyd
26+
source-type: git
27+
plugin: cmake
28+
cmake-parameters:
29+
- -DCMAKE_INSTALL_PREFIX=/usr
30+
build-environment:
31+
- LDFLAGS: "-pthread"
32+
33+
override-pull: |
34+
snapcraftctl pull
35+
snapcraftctl set-version "$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)"
36+
37+
build-packages:
38+
- build-essential
39+
- libjson-c-dev
40+
- libwebsockets-dev
41+
42+
stage-packages:
43+
- build-essential
44+
- libjson-c-dev
45+
- libwebsockets-dev
46+
47+
homeishome-launch:
48+
plugin: nil
49+
stage-snaps:
50+
- homeishome-launch

0 commit comments

Comments
 (0)