-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
92 lines (81 loc) · 2.14 KB
/
.goreleaser.yml
File metadata and controls
92 lines (81 loc) · 2.14 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# GoReleaser configuration for aigate
# See https://goreleaser.com/customization/ for more details
version: 2
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- 386
- arm
ldflags:
- -s -w
- -X main.Version={{.Version}}
- -X main.BuildTime={{.Date}}
- -X main.GitCommit={{.FullCommit}}
binary: aigate-{{.Os}}-{{.Arch}}
ignore:
- goos: windows
goarch: arm
archives:
- formats:
- tar.gz
name_template: "aigate-{{.Os}}-{{.Arch}}"
files:
- README.md
- LICENSE
format_overrides:
- goos: windows
formats:
- zip
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: AxeForging
name: aigate
draft: false
prerelease: auto
name_template: "Release {{ .Tag }}"
footer: |
## Installation
### Linux/macOS (AMD64)
```bash
curl -L https://github.com/AxeForging/aigate/releases/download/{{ .Tag }}/aigate-linux-amd64.tar.gz -o aigate-linux-amd64.tar.gz
tar -xvf aigate-linux-amd64.tar.gz aigate-linux-amd64
chmod +x aigate-linux-amd64
sudo mv aigate-linux-amd64 /usr/local/bin/aigate
```
### Linux/macOS (ARM64)
```bash
curl -L https://github.com/AxeForging/aigate/releases/download/{{ .Tag }}/aigate-linux-arm64.tar.gz -o aigate-linux-arm64.tar.gz
tar -xvf aigate-linux-arm64.tar.gz aigate-linux-arm64
chmod +x aigate-linux-arm64
sudo mv aigate-linux-arm64 /usr/local/bin/aigate
```
### Windows
```powershell
Invoke-WebRequest -Uri https://github.com/AxeForging/aigate/releases/download/{{ .Tag }}/aigate-windows-amd64.zip -OutFile aigate-windows-amd64.zip
Expand-Archive -Path aigate-windows-amd64.zip -DestinationPath .
Move-Item -Path aigate-windows-amd64/aigate-windows-amd64.exe -Destination aigate.exe
```
### From Source
```bash
go install github.com/AxeForging/aigate@{{ .Tag }}
```