From b89013b18af0e2cf9f99b9430262d1d1b3755c03 Mon Sep 17 00:00:00 2001 From: "Sean E. Russell" Date: Mon, 7 Feb 2022 15:17:15 -0600 Subject: [PATCH] Fixes #198, adding back in deb and rpm packaging --- .github/workflows/build.yml | 2 +- .github/workflows/prerelease.yml | 2 +- build/gotop.conf | 33 +++++++++++++++++++++++++ build/nfpm.yml | 42 ++++++++++++++++++++------------ 4 files changed, 62 insertions(+), 17 deletions(-) create mode 100644 build/gotop.conf diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a755a16..128fd20 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 65b0238..f1eecbb 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -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: diff --git a/build/gotop.conf b/build/gotop.conf new file mode 100644 index 0000000..20423ab --- /dev/null +++ b/build/gotop.conf @@ -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 diff --git a/build/nfpm.yml b/build/nfpm.yml index 69852e0..1457308 100644 --- a/build/nfpm.yml +++ b/build/nfpm.yml @@ -1,15 +1,27 @@ -name: "gotop" -arch: "amd64" -platform: "linux" -version: "v${VERSION}" -section: "default" -priority: "extra" -maintainer: "Sean Russell " -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 +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