| 1 | version: 2 |
| 2 | project_name: reasonix |
| 3 | |
| 4 | before: |
| 5 | hooks: |
| 6 | - go mod download |
| 7 | |
| 8 | builds: |
| 9 | - id: reasonix |
| 10 | main: ./cmd/reasonix |
| 11 | binary: reasonix |
| 12 | env: |
| 13 | - CGO_ENABLED=0 |
| 14 | flags: |
| 15 | - -trimpath |
| 16 | ldflags: |
| 17 | # Inject version identity for `reasonix version --verbose/--json` (Integration D/E). |
| 18 | # buildTimeUTC is the goreleaser run time (UTC), not vcs.time. |
| 19 | - -s -w -X main.version={{ .Tag }} -X main.gitCommit={{ .ShortCommit }} -X main.buildTimeUTC={{ .Date }} -X reasonix/internal/productdocs.linkedVersion={{ .Tag }} -X reasonix/internal/productdocs.linkedRevision={{ .Commit }} |
| 20 | goos: [darwin, linux, windows] |
| 21 | goarch: [amd64, arm64] |
| 22 | |
| 23 | archives: |
| 24 | - id: reasonix |
| 25 | ids: [reasonix] |
| 26 | name_template: "reasonix-{{ .Os }}-{{ .Arch }}" |
| 27 | formats: [tar.gz] |
| 28 | format_overrides: |
| 29 | - goos: windows |
| 30 | formats: [zip] |
| 31 | |
| 32 | checksum: |
| 33 | name_template: SHA256SUMS |
| 34 | algorithm: sha256 |
| 35 | |
| 36 | homebrew_casks: |
| 37 | - name: reasonix |
| 38 | ids: [reasonix] |
| 39 | # Prereleases (including v*-preview.* and v*-rc*) must not update the stable |
| 40 | # tap; brew has no separate prerelease channel, so uploading either cask |
| 41 | # would make it the default `brew install`. |
| 42 | # npm is a separate line (release-npm.yml, `npm-v*`), so an npm prerelease no |
| 43 | # longer drags brew along — a stable `v*` cask can ship while npm stays on rc. |
| 44 | skip_upload: "auto" |
| 45 | repository: |
| 46 | owner: esengine |
| 47 | name: homebrew-reasonix |
| 48 | branch: main |
| 49 | token: "{{ .Env.HOMEBREW_TAP_TOKEN }}" |
| 50 | homepage: "https://github.com/esengine/DeepSeek-Reasonix" |
| 51 | description: "Cache-first DeepSeek coding agent for the terminal." |
| 52 | commit_author: |
| 53 | name: reasonix |
| 54 | email: reasonix@deepseek.com |
| 55 | hooks: |
| 56 | post: |
| 57 | install: | |
| 58 | if OS.mac? |
| 59 | system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/reasonix"] |
| 60 | end |
| 61 | |
| 62 | release: |
| 63 | prerelease: auto |
| 64 | make_latest: false |
| 65 | name_template: "Reasonix CLI {{ .Tag }}" |
| 66 |