mirror of
https://github.com/sst/opencode.git
synced 2025-08-05 05:48:05 +00:00

* sync * ci test * ci test * tag * sync * sync * ci * sync * enable cgo * sync * add back brew * switch to main
72 lines
1.7 KiB
YAML
72 lines
1.7 KiB
YAML
version: 2
|
|
project_name: opencode
|
|
before:
|
|
hooks:
|
|
builds:
|
|
- env:
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
main: ./main.go
|
|
|
|
archives:
|
|
- format: tar.gz
|
|
# this name template makes the OS and Arch compatible with the results of uname.
|
|
name_template: >-
|
|
opencode-
|
|
{{- if eq .Os "darwin" }}mac-
|
|
{{- else if eq .Os "windows" }}windows-
|
|
{{- else if eq .Os "linux" }}linux-{{end}}
|
|
{{- if eq .Arch "amd64" }}x86_64
|
|
{{- else if eq .Arch "#86" }}i386
|
|
{{- else }}{{ .Arch }}{{ end }}
|
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
|
# use zip for windows archives
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
snapshot:
|
|
name_template: "0.0.0-{{ .Timestamp }}"
|
|
aurs:
|
|
- name: opencode
|
|
homepage: "https://github.com/opencode-ai/opencode"
|
|
description: "Deploy anything"
|
|
maintainers:
|
|
- "opencode <noreply@opencode.ai>"
|
|
license: "MIT"
|
|
private_key: "{{ .Env.AUR_KEY }}"
|
|
git_url: "ssh://aur@aur.archlinux.org/opencode-bin.git"
|
|
provides:
|
|
- opencode
|
|
conflicts:
|
|
- opencode
|
|
package: |-
|
|
install -Dm755 ./opencode "${pkgdir}/usr/bin/opencode"
|
|
brews:
|
|
- repository:
|
|
owner: opencode-ai
|
|
name: homebrew-tap
|
|
nfpms:
|
|
- maintainer: opencode
|
|
description: terminal based agent that can build anything
|
|
formats:
|
|
- deb
|
|
- rpm
|
|
file_name_template: >-
|
|
{{ .ProjectName }}-
|
|
{{- if eq .Os "darwin" }}mac
|
|
{{- else }}{{ .Os }}{{ end }}-{{ .Arch }}
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^doc:"
|
|
- "^test:"
|
|
- "^ci:"
|
|
- "^ignore:"
|
|
- "^example:"
|
|
- "^wip:"
|