fuzzyworld

template / commit

Attempting to add chocolatey support.

d1afaafcb4b642b75f5af6237ce31792948f6de3 · Pavel Safronov · 2023-01-30 23:08:47 -0800 · parents f4e7b187a343

Attempting to add chocolatey support.
 .goreleaser.yaml | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 110 insertions(+)

diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 8b8606a..eb2b33c 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -97,4 +97,114 @@ brews:
     # Default is empty.
     post_install: |
       system "#{bin}/template reset"
+chocolateys:
+  -
+    # Your app's package name.
+    # The value may not contain spaces or character that are not valid for a URL.
+    # If you want a good separator for words, use '-', not  '.'.
+    #
+    # Defaults to `ProjectName`.
+    name: template
+
+    # Your app's owner.
+    # It basically means your.
+    # Defaults empty.
+    owners: PavelSafronov
+
+    # The app's title.
+    # A human-friendly title of the package.
+    # Defaults to `ProjectName`.
+    title: template
+
+    # Your app's authors (probably you).
+    # Defaults are shown below.
+    authors: PavelSafronov
+
+    # Your app's project url.
+    # It is a required field.
+    project_url: https://example.com/
+
+    # Template for the url which is determined by the given Token (github,
+    # gitlab or gitea)
+    # Default depends on the client.
+    # url_template: "https://github.com/foo/bar/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
+    # https://gitlab.com/PavelSafronov/template/-/releases/v0.1.17/downloads/template_0.1.17_Linux_i386.tar.gz
+    url_template: "https://gitlab.com/PavelSafronov/template/-/releases/{{ .Tag }}/downloads/{{ .ArtifactName }}"
+
+    # # App's icon.
+    # # Default is empty.
+    # icon_url: 'https://rawcdn.githack.com/foo/bar/efbdc760-395b-43f1-bf69-ba25c374d473/icon.png'
+
+    # Your app's copyright details.
+    # Default is empty.
+    copyright: 2023 PavelSafronov
+
+    # App's license information url.
+    license_url: https://gitlab.com/PavelSafronov/template/-/blob/main/LICENSE
+
+    # Your apps's require license acceptance:
+    # Specify whether the client must prompt the consumer to accept the package
+    # license before installing.
+    # Default is false.
+    require_license_acceptance: false
+
+    # Your app's source url.
+    # Default is empty.
+    project_source_url: https://gitlab.com/PavelSafronov/template
+
+    # Your app's documentation url.
+    # Default is empty.
+    docs_url: https://gitlab.com/PavelSafronov/template/-/blob/main/README.md
+
+    # App's bugtracker url.
+    # Default is empty.
+    bug_tracker_url: https://gitlab.com/PavelSafronov/template/-/issues
+
+    # Your app's tag list.
+    # Default is empty.
+    tags: "template"
+
+    # Your app's summary:
+    summary: This CLI creates files and folders with generated templated names and contents.
+
+    # This the description of your chocolatey package.
+    # Supports markdown.
+    description: |
+      {{ .ProjectName }} installer package.
+      This CLI creates files and folders with generated templated names and contents.
+
+    # Your app's release notes.
+    # A description of the changes made in this release of the package.
+    # Supports markdown. To prevent the need to continually update this field,
+    # providing a URL to an external list of Release Notes is perfectly
+    # acceptable.
+    # Default is empty.
+    # https://gitlab.com/PavelSafronov/template/-/releases/v0.1.21
+    # release_notes: "https://github.com/foo/bar/releases/tag/v{{ .Version }}"
+    release_notes: "https://gitlab.com/PavelSafronov/template/-/releases/{{ .Version }}"
+
+    # # App's dependencies
+    # # Default is empty. Version is not required.
+    # dependencies:
+    #   - id: nfpm
+    #     version: 2.20.0
+
+    # The api key that should be used to push to the chocolatey repository.
+    #
+    # WARNING: do not expose your api key in the configuration file!
+    api_key: '{{ .Env.CHOCOLATEY_API_KEY }}'
+
+    # The source repository that will push the package to.
+    #
+    # Defaults are shown below.
+    source_repo: "https://push.chocolatey.org/"
+
+    # Setting this will prevent goreleaser to actually try to push the package
+    # to chocolatey repository, leaving the responsability of publishing it to
+    # the user.
+    skip_publish: false
 
+    # GOAMD64 to specify which amd64 version to use if there are multiple
+    # versions from the build section.
+    # Default is v1.
+    goamd64: v1