Skip to content

Commit

Permalink
Snap created and ready for publication (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
kz6fittycent authored Oct 18, 2022
1 parent 2f7e0e0 commit fde310b
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
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

0 comments on commit fde310b

Please sign in to comment.