Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap created and ready for publication #1003

Merged
merged 28 commits into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fbc340a
Create snapcraft.yaml
kz6fittycent Sep 1, 2022
691640b
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
19ad973
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
4c920ff
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
3a558d1
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
dfeb72f
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
734ca1f
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
a8159e2
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
c6767c5
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
27597a9
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
d526876
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
f2ff0c8
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
34d0abc
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
39bcfcc
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
d032675
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
2fc3b08
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
c306fb7
Update snapcraft.yaml
kz6fittycent Sep 1, 2022
f780206
Update snapcraft.yaml
kz6fittycent Sep 2, 2022
4e5e11b
Update snapcraft.yaml
kz6fittycent Sep 2, 2022
3c53e17
Update snapcraft.yaml
kz6fittycent Sep 2, 2022
ac2a2c7
Update snapcraft.yaml
kz6fittycent Sep 2, 2022
9eef793
Update snapcraft.yaml
kz6fittycent Sep 2, 2022
641ea91
Update snapcraft.yaml
kz6fittycent Sep 2, 2022
3ff8183
Update snapcraft.yaml
kz6fittycent Sep 2, 2022
d410b0d
Update snapcraft.yaml
kz6fittycent Sep 2, 2022
cdb62b0
Update snapcraft.yaml
kz6fittycent Sep 2, 2022
d299422
Update snapcraft.yaml
kz6fittycent Sep 2, 2022
f229faf
Update README
kz6fittycent Oct 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ brew install ttyd
## Install on Linux

- Binary version (recommended): download from the [releases](https://github.com/tsl0922/ttyd/releases) page.

- Install the snap:

`sudo snap install ttyd --classic`


- Build from source (debian/ubuntu):

```bash
Expand Down
50 changes: 50 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: ttyd
adopt-info: ttyd
summary: Share your terminal over the web
description: |
ttyd is a simple command-line tool for sharing terminal over the web

grade: stable
confinement: classic
base: core20
compression: lzo

license: MIT

assumes:
- command-chain

apps:
ttyd:
command: usr/bin/ttyd
command-chain:
- bin/homeishome-launch

parts:
ttyd:
source: https://github.com/tsl0922/ttyd
source-type: git
plugin: cmake
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
build-environment:
- LDFLAGS: "-pthread"

override-pull: |
snapcraftctl pull
snapcraftctl set-version "$(git describe --tags | sed 's/^v//' | cut -d "-" -f1)"

build-packages:
- build-essential
- libjson-c-dev
- libwebsockets-dev

stage-packages:
- build-essential
- libjson-c-dev
- libwebsockets-dev

homeishome-launch:
plugin: nil
stage-snaps:
- homeishome-launch