1version: 2
2project_name: opencode
3before:
4 hooks:
5builds:
6 - env:
7 - CGO_ENABLED=0
8 goos:
9 - linux
10 - darwin
11 goarch:
12 - amd64
13 - arm64
14 ldflags:
15 - -s -w -X github.com/opencode-ai/opencode/internal/version.Version={{.Version}}
16 main: ./main.go
17
18archives:
19 - format: tar.gz
20 name_template: >-
21 opencode-
22 {{- if eq .Os "darwin" }}mac-
23 {{- else if eq .Os "windows" }}windows-
24 {{- else if eq .Os "linux" }}linux-{{end}}
25 {{- if eq .Arch "amd64" }}x86_64
26 {{- else if eq .Arch "#86" }}i386
27 {{- else }}{{ .Arch }}{{ end }}
28 {{- if .Arm }}v{{ .Arm }}{{ end }}
29 format_overrides:
30 - goos: windows
31 format: zip
32checksum:
33 name_template: "checksums.txt"
34snapshot:
35 name_template: "0.0.0-{{ .Timestamp }}"
36aurs:
37 - name: opencode-ai
38 homepage: "https://github.com/opencode-ai/opencode"
39 description: "terminal based agent that can build anything"
40 maintainers:
41 - "kujtimiihoxha <kujtimii.h@gmail.com>"
42 license: "MIT"
43 private_key: "{{ .Env.AUR_KEY }}"
44 git_url: "ssh://aur@aur.archlinux.org/opencode-ai-bin.git"
45 provides:
46 - opencode
47 conflicts:
48 - opencode
49 package: |-
50 install -Dm755 ./opencode "${pkgdir}/usr/bin/opencode"
51brews:
52 - repository:
53 owner: opencode-ai
54 name: homebrew-tap
55nfpms:
56 - maintainer: kujtimiihoxha
57 description: terminal based agent that can build anything
58 formats:
59 - deb
60 - rpm
61 file_name_template: >-
62 {{ .ProjectName }}-
63 {{- if eq .Os "darwin" }}mac
64 {{- else }}{{ .Os }}{{ end }}-{{ .Arch }}
65
66changelog:
67 sort: asc
68 filters:
69 exclude:
70 - "^docs:"
71 - "^doc:"
72 - "^test:"
73 - "^ci:"
74 - "^ignore:"
75 - "^example:"
76 - "^wip:"