Fixes #198, adding back in deb and rpm packaging

This commit is contained in:
Sean E. Russell 2022-02-07 15:17:15 -06:00
parent 7dfd040628
commit b89013b18a
4 changed files with 62 additions and 17 deletions

View File

@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@master
- name: Compile
uses: xxxserxxx/actions/golang-build@v2.0.3
uses: xxxserxxx/actions/golang-build@v2.0.4
env:
SRCPATH: ./cmd/gotop
with:

View File

@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@master
- name: Make binaries
uses: xxxserxxx/actions/golang-build@v2.0.3
uses: xxxserxxx/actions/golang-build@v2.0.4
with:
args: darwin/amd64/1 darwin/arm64/1 linux/amd64 linux/386 linux/arm64 linux/arm7 linux/arm6 linux/arm5 windows/amd64/1 windows/386/1 freebsd/amd64/1
env:

33
build/gotop.conf Normal file
View File

@ -0,0 +1,33 @@
# Scale graphs to this level; 7 is the default, 2 is zoomed out.
graphhorizontalscale=7
# If true, start the UI with the help visible
helpvisible=false
# The color scheme to use. See `--list colorschemes`
colorscheme=default
# How frequently to update the UI, in nanoseconds
updateinterval=1000000000
# If true, show the average CPU load
averagecpu=false
# If true, show load per CPU
percpuload=true
# Temperature units. C for Celcius, F for Fahrenheit
tempscale=C
# If true, display a status bar
statusbar=false
# The network interface to monitor
netinterface=all
# A layout name. See `--list layouts`
layout=default
# The maximum log file size, in bytes
maxlogsize=5000000
# If set, export data as Promethius metrics on the interface:port.
# E.g., `:8080` (colon is required, interface is not)
#metricsexportport=
# Display network IO in mpbs if true
mbps=false
# A list of enabled temp sensors. See `--list devices`
#temperatures=
# Enable NVidia GPU metrics.
nvidia=false
# To configure the NVidia refresh rate, set a duration:
#nvidiarefresh=30s

View File

@ -1,15 +1,27 @@
name: "gotop"
arch: "amd64"
platform: "linux"
version: "v${VERSION}"
section: "default"
priority: "extra"
maintainer: "Sean Russell <ser@ser1.net>"
description: |
A terminal based graphical activity monitor inspired by gtop and vtop
vendor: "Sean Russell"
homepage: "https://github.com/xxxserxxx/gotop"
license: "GNU Affero General Public License v3.0"
bindir: "/usr/local/bin"
files:
build/gotop: "/usr/local/bin/gotop"
name: gotop
arch: amd64
platform: linux
version: v${VERSION}
version_schema: semver
version_metadata: git
section: default
priority: extra
maintainer: Sean Russell <ser@ser1.net>
description: A terminal based graphical activity monitor inspired by gtop and vtop
vendor: Sean Russell
homepage: https://github.com/xxxserxxx/gotop
license: The MIT License (Festival variant)
contents:
# The executable
- src: gotop
dst: /usr/bin/gotop
# Default configuration
- src: build/gotop.conf
dst: /etc/gotop/gotop.conf
type: config|noreplace
# Contributed layouts
- src: layouts/htop
dst: /etc/gotop/htop
type: config|noreplace