File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11BINARY := ollamon
22BUILD_DIR := bin
3+ DIST_DIR := dist
34MAIN_PKG := ./cmd/ollamon
5+ GOCACHE := $(CURDIR ) /.gocache
6+ VERSION := 0.1.0
47
5- .PHONY : build run tidy clean
8+ .PHONY : build run tidy clean dist
69
710build :
811 mkdir -p $(BUILD_DIR )
9- go build -o $(BUILD_DIR ) /$(BINARY ) $(MAIN_PKG )
12+ mkdir -p $(GOCACHE )
13+ GOCACHE=$(GOCACHE ) GOPROXY=off go build -o $(BUILD_DIR ) /$(BINARY ) $(MAIN_PKG )
1014
1115run :
12- go run $(MAIN_PKG )
16+ mkdir -p $(GOCACHE )
17+ GOCACHE=$(GOCACHE ) GOPROXY=off go run $(MAIN_PKG )
1318
1419tidy :
15- go mod tidy
20+ mkdir -p $(GOCACHE )
21+ GOCACHE=$(GOCACHE ) go mod tidy
1622
1723clean :
18- rm -rf $(BUILD_DIR )
24+ rm -rf $(BUILD_DIR ) $(GOCACHE )
25+
26+ dist :
27+ mkdir -p $(GOCACHE )
28+ $(MAKE ) tidy
29+ mkdir -p $(DIST_DIR )
30+ @for target in darwin/amd64 darwin/arm64 linux/amd64 linux/arm64; do \
31+ os=$$ {target%/* }; \
32+ arch=$$ {target#* /}; \
33+ echo " Building $$ target..." ; \
34+ tmpdir=$$(mktemp -d ) ; \
35+ GOCACHE=$(GOCACHE ) GOPROXY=off GOOS=$$ os GOARCH=$$ arch CGO_ENABLED=0 go build -ldflags " -s -w -X main.version=v$( VERSION) " -o $$ tmpdir/$(BINARY ) $(MAIN_PKG ) ; \
36+ tar -C $$ tmpdir -czf $(DIST_DIR ) /$(BINARY ) _$(VERSION ) _$$ os\_ $$ arch.tar.gz $(BINARY ) ; \
37+ rm -rf $$ tmpdir; \
38+ done
39+ shasum -a 256 $(DIST_DIR ) /* .tar.gz > $(DIST_DIR ) /checksums.txt
40+ @echo " Release artifacts in $( DIST_DIR) /"
41+ @ls -lh $(DIST_DIR ) /
Original file line number Diff line number Diff line change 22
33Terminal monitor for Ollama nodes.
44
5+ ## install (one-line)
6+
7+ curl -fsSL https://raw.githubusercontent.com/hbasria/ollamon/main/scripts/install.sh | sh
8+
9+ Sadece kurulum (çalıştırmadan):
10+
11+ curl -fsSL https://raw.githubusercontent.com/hbasria/ollamon/main/scripts/install.sh | sh -s -- --no-run
12+
13+ Sürüm vererek kurulum:
14+
15+ curl -fsSL https://raw.githubusercontent.com/hbasria/ollamon/main/scripts/install.sh | sh -s -- --version v0.1.0
16+
17+ Supported targets:
18+
19+ - darwin/amd64
20+ - darwin/arm64 (Apple Silicon)
21+ - linux/amd64
22+ - linux/arm64
23+
524## run
625
726go mod tidy
Original file line number Diff line number Diff line change @@ -15,15 +15,23 @@ require (
1515 github.com/charmbracelet/x/cellbuf v0.0.13-0.20250311204145-2c3ea96c31dd // indirect
1616 github.com/charmbracelet/x/term v0.2.1 // indirect
1717 github.com/ebitengine/purego v0.8.2 // indirect
18+ github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
19+ github.com/go-ole/go-ole v1.2.6 // indirect
1820 github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
21+ github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect
1922 github.com/mattn/go-isatty v0.0.20 // indirect
23+ github.com/mattn/go-localereader v0.0.1 // indirect
2024 github.com/mattn/go-runewidth v0.0.16 // indirect
2125 github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
2226 github.com/muesli/cancelreader v0.2.2 // indirect
2327 github.com/muesli/termenv v0.16.0 // indirect
28+ github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect
2429 github.com/rivo/uniseg v0.4.7 // indirect
2530 github.com/tklauser/go-sysconf v0.3.12 // indirect
31+ github.com/tklauser/numcpus v0.6.1 // indirect
2632 github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
33+ github.com/yusufpapurcu/wmi v1.2.4 // indirect
2734 golang.org/x/sync v0.11.0 // indirect
2835 golang.org/x/sys v0.30.0 // indirect
36+ golang.org/x/text v0.3.8 // indirect
2937)
You can’t perform that action at this time.
0 commit comments