|
| 1 | +# GoReleaser Chocolatey Configuration (Experimental) |
| 2 | +# Only builds Windows binaries and publishes to Chocolatey |
| 3 | +version: 2 |
| 4 | + |
| 5 | +project_name: promptext |
| 6 | + |
| 7 | +# Build configuration - Windows only |
| 8 | +builds: |
| 9 | + - id: default |
| 10 | + binary: promptext |
| 11 | + main: ./cmd/promptext |
| 12 | + env: |
| 13 | + - CGO_ENABLED=0 |
| 14 | + goos: |
| 15 | + - windows |
| 16 | + goarch: |
| 17 | + - amd64 |
| 18 | + - arm64 |
| 19 | + ldflags: |
| 20 | + - -s -w |
| 21 | + - -X main.version={{.Version}} |
| 22 | + - -X main.date={{.Date}} |
| 23 | + |
| 24 | +# Archives for Chocolatey (needs zip files) |
| 25 | +archives: |
| 26 | + - id: default |
| 27 | + formats: ["zip"] |
| 28 | + name_template: >- |
| 29 | + {{ .ProjectName }}_ |
| 30 | + {{- if eq .Os "windows" }}Windows |
| 31 | + {{- else }}{{ .Os }}{{ end }}_ |
| 32 | + {{- if eq .Arch "amd64" }}x86_64 |
| 33 | + {{- else }}{{ .Arch }}{{ end }} |
| 34 | + files: |
| 35 | + - README.md |
| 36 | + - LICENSE |
| 37 | + |
| 38 | +# Disable checksums |
| 39 | +checksum: |
| 40 | + disable: true |
| 41 | + |
| 42 | +# Disable changelog |
| 43 | +changelog: |
| 44 | + disable: true |
| 45 | + |
| 46 | +# Disable GitHub release |
| 47 | +release: |
| 48 | + disable: true |
| 49 | + |
| 50 | +# Chocolatey (EXPERIMENTAL) |
| 51 | +chocolateys: |
| 52 | + - name: promptext |
| 53 | + ids: |
| 54 | + - default # Reference the build id |
| 55 | + title: Promptext |
| 56 | + authors: George Dikeakos |
| 57 | + project_url: https://github.com/1broseidon/promptext |
| 58 | + url_template: "https://github.com/1broseidon/promptext/releases/download/{{ .Tag }}/{{ .ArtifactName }}" |
| 59 | + license_url: https://github.com/1broseidon/promptext/blob/main/LICENSE |
| 60 | + copyright: 2024 George Dikeakos |
| 61 | + require_license_acceptance: false |
| 62 | + project_source_url: https://github.com/1broseidon/promptext |
| 63 | + docs_url: https://github.com/1broseidon/promptext#readme |
| 64 | + bug_tracker_url: https://github.com/1broseidon/promptext/issues |
| 65 | + tags: "cli go ai llm token-counter context promptext" |
| 66 | + summary: Smart code context extractor for AI assistants |
| 67 | + description: | |
| 68 | + Promptext analyzes codebases, filters relevant files, estimates token |
| 69 | + usage using tiktoken (GPT-3.5/4 compatible), and provides formatted |
| 70 | + output suitable for AI prompts. |
| 71 | +
|
| 72 | + Features: |
| 73 | + - Smart file filtering with .gitignore support |
| 74 | + - Relevance prioritization with multi-factor scoring |
| 75 | + - Token budget management |
| 76 | + - Multiple output formats (PTX, TOON, Markdown, XML) |
| 77 | + - Accurate token counting using tiktoken |
| 78 | + api_key: "{{ .Env.CHOCOLATEY_API_KEY }}" |
| 79 | + skip_publish: false |
0 commit comments