Skip to content

Commit f2480ff

Browse files
committed
doc modified
1 parent e0fc07b commit f2480ff

File tree

3 files changed

+25
-6
lines changed

3 files changed

+25
-6
lines changed

Makefile

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
VERSION := $(or $(AppVersion), "v1.1.1")
2-
COMMIT := $(shell git rev-parse --short HEAD)
1+
VERSION := $(or $(AppVersion), "v1.1.2")
2+
COMMIT := $(or $(shell git rev-parse --short HEAD), "unknown")
33
BUILDDATE := $(shell date +%Y-%m-%d)
44

55
LDFLAGS := -X 'main.AppVersion=$(VERSION)' -X 'main.CommitHash=$(COMMIT)' -X 'main.BuildDate=$(BUILDDATE)'
66

7+
all: build
78

89
dep:
910
go mod tidy
@@ -23,12 +24,23 @@ build:
2324

2425
build-all:
2526
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o build/chatz-linux-amd64
27+
cp build/chatz-linux-amd64 build/chatz
28+
tar -zcvf build/chatz-linux-amd64.tar.gz build/chatz man/chatz.1
2629
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags="$(LDFLAGS)" -o build/chatz-linux-arm64
30+
cp build/chatz-linux-arm64 build/chatz
31+
tar -zcvf build/chatz-linux-arm64.tar.gz build/chatz man/chatz.1
2732
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -ldflags="$(LDFLAGS)" -o build/chatz-linux-arm
33+
cp build/chatz-linux-arm build/chatz
34+
tar -zcvf build/chatz-linux-arm.tar.gz build/chatz man/chatz.1
2835
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o build/chatz-darwin-amd64
36+
cp build/chatz-darwin-amd64 build/chatz
37+
tar -zcvf build/chatz-darwin-amd64.tar.gz build/chatz man/chatz.1
2938
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags="$(LDFLAGS)" -o build/chatz-darwin-arm64
39+
cp build/chatz-darwin-arm64 build/chatz
40+
tar -zcvf build/chatz-darwin-arm64.tar.gz build/chatz man/chatz.1
3041
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="$(LDFLAGS)" -o build/chatz-windows-amd64.exe
3142
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags="$(LDFLAGS)" -o build/chatz-windows-i386.exe
43+
rm build/chatz
3244

3345
clean:
3446
rm -rf chatz build

README.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,30 @@ With chatz, you can streamline your notification processes across multiple platf
3030
## Installation
3131
Download and install executable binary from GitHub releases page.
3232

33+
### Using homebrew
34+
```sh
35+
brew tap tech-thinker/tap
36+
brew update
37+
brew install chatz
38+
```
39+
3340
### Linux Installation
3441
```sh
35-
curl -sL https://github.com/tech-thinker/chatz/releases/download/v1.1.1/chatz-linux-amd64 -o chatz
42+
curl -sL https://github.com/tech-thinker/chatz/releases/download/v1.1.2/chatz-linux-amd64 -o chatz
3643
chmod +x chatz
3744
sudo mv chatz /usr/bin
3845
```
3946

4047
### MacOS Installation
4148
```sh
42-
curl -sL https://github.com/tech-thinker/chatz/releases/download/v1.1.1/chatz-darwin-amd64 -o chatz
49+
curl -sL https://github.com/tech-thinker/chatz/releases/download/v1.1.2/chatz-darwin-amd64 -o chatz
4350
chmod +x chatz
4451
sudo mv chatz /usr/bin
4552
```
4653

4754
### Windows Installation
4855
```sh
49-
curl -sL https://github.com/tech-thinker/chatz/releases/download/v1.1.1/chatz-windows-amd64.exe -o chatz.exe
56+
curl -sL https://github.com/tech-thinker/chatz/releases/download/v1.1.2/chatz-windows-amd64.exe -o chatz.exe
5057
chatz.exe
5158
```
5259

man/chatz.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH CHATZ 1 "September 25, 2024" "Version 1.1.1" "User Commands"
1+
.TH CHATZ 1 "September 25, 2024" "Version 1.1.2" "User Commands"
22
.SH NAME
33
chatz \- a CLI tool for sending notifications to Google Chat, Slack, Discord, Telegram etc.
44
.SH SYNOPSIS

0 commit comments

Comments
 (0)