-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
74 lines (63 loc) · 1.76 KB
/
.goreleaser.yaml
File metadata and controls
74 lines (63 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: 2
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- arm64
binary: "{{ .ProjectName }}"
archives:
- format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
- README.md
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brews:
- name: "{{ .ProjectName }}"
homepage: "https://github.com/metaspartan/mactop"
description: "Apple Silicon Monitor Top written in Go Lang"
url_template: "https://github.com/metaspartan/mactop/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
dependencies:
- name: macos
install: |
bin.install "{{ .ProjectName }}"
service: |
run [opt_bin/"{{ .ProjectName }}", "-p", "9101", "--headless"]
keep_alive true
log_path var/"log/{{ .ProjectName }}.log"
error_log_path var/"log/{{ .ProjectName }}.error.log"
process_type :background
nice 10
caveats: |
mactop requires macOS 12+, and runs exclusively on Apple Silicon.
To run mactop as a background service:
brew services start mactop
To view service error logs:
brew services logs mactop
Prometheus metrics will be available at:
http://localhost:9101/metrics
To change the Prometheus port:
1. brew services stop mactop
2. brew services edit mactop
3. Change 9101 to your desired port
4. brew services start mactop
Or run manually with a custom port:
mactop -p <PORT> --headless
repository:
owner: "metaspartan"
name: "mactop"