Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Implement snap packaging, snaps are universal linux packages (#119) #120

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
dist/
gotop*

# snap packaging specific
/parts/
/prime/
/stage/
/*.snap
/snap/.snapcraft/
/*_source.tar.bz2
38 changes: 38 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: gotop-cjbassi
base: core18
version: determined-by-version-script
version-script: git describe --always --tags --dirty
summary: A terminal based graphical activity monitor inspired by gtop and vtop
description: |
Another terminal based graphical activity monitor, inspired by [gtop](https://github.com/aksakalli/gtop) and [vtop](https://github.com/MrRio/vtop), this time written in [Go](https://golang.org/)!

grade: stable
confinement: strict
icon: assets/logo.png
license: AGPL-3.0

parts:
gotop:
source: .
plugin: go
go-importpath: github.com/cjbassi/gotop
build-packages:
- git-core
- gcc

plugs:
# Required by the "Temperatures" widget
hardware-observe:

# Required by the "Disk Usage" widget
mount-observe:

# Required by the "Processes" widget
system-observe:

apps:
gotop-cjbassi:
command: bin/gotop
environment:
LANG: C.UTF-8
LC_ALL: C.UTF-8