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