summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorSean E. Russell <ser@ser1.net>2020-02-20 10:05:58 -0600
committerSean E. Russell <ser@ser1.net>2020-02-20 12:35:18 -0600
commit5f37965467eb89f6d7e2cb83fe20ed1de25ab9a7 (patch)
tree46de122a279e78f4b4559df74bb5a8ddae613942 /build
parentf96a97c3d8f5b8cd87a6e2f1fd1d0a4032c429a7 (diff)
Builds for darwin; requires docker.
osxcross has an old go; make go.mod match. Directory clean-ups
Diffstat (limited to 'build')
-rw-r--r--build/nfpm.yml2
-rwxr-xr-xbuild/osx.sh3
-rw-r--r--build/snapcraft.yaml38
3 files changed, 42 insertions, 1 deletions
diff --git a/build/nfpm.yml b/build/nfpm.yml
index 67b575b..69852e0 100644
--- a/build/nfpm.yml
+++ b/build/nfpm.yml
@@ -12,4 +12,4 @@ homepage: "https://github.com/xxxserxxx/gotop"
license: "GNU Affero General Public License v3.0"
bindir: "/usr/local/bin"
files:
- dist/gotop: "/usr/local/bin/gotop"
+ build/gotop: "/usr/local/bin/gotop"
diff --git a/build/osx.sh b/build/osx.sh
new file mode 100755
index 0000000..9d76d59
--- /dev/null
+++ b/build/osx.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd /mnt
+./make.sh darwin
diff --git a/build/snapcraft.yaml b/build/snapcraft.yaml
new file mode 100644
index 0000000..de17ee7
--- /dev/null
+++ b/build/snapcraft.yaml
@@ -0,0 +1,38 @@
+name: gotop-xxxserxxx
+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/xxxserxxx/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-xxxserxxx:
+ command: bin/gotop
+ environment:
+ LANG: C.UTF-8
+ LC_ALL: C.UTF-8