2023-06-14 23:59:55 -03:00
|
|
|
# Winget
|
|
|
|
|
|
|
|
After releasing to GitHub, GitLab, or Gitea, GoReleaser can generate and publish
|
|
|
|
a _winget manifest_ and commit to a git repository, and PR it to `winget-pkgs`
|
|
|
|
if instructed to.
|
|
|
|
|
|
|
|
The `winget` section specifies how the **manifests** should be created:
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
# .goreleaser.yaml
|
|
|
|
winget:
|
|
|
|
- # Name of the recipe
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: the project name.
|
|
|
|
# Templates: allowed.
|
2023-06-14 23:59:55 -03:00
|
|
|
name: myproject
|
|
|
|
|
|
|
|
# Publisher name.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2024-02-27 13:56:24 +01:00
|
|
|
# Required
|
2023-06-14 23:59:55 -03:00
|
|
|
publisher: Foo Inc
|
|
|
|
|
|
|
|
# Your app's description.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2024-02-27 13:56:24 +01:00
|
|
|
# Required
|
2024-07-03 09:31:08 -03:00
|
|
|
# Default: inferred from global metadata.
|
2023-06-14 23:59:55 -03:00
|
|
|
short_description: "Software to create fast and easy drum rolls."
|
|
|
|
|
|
|
|
# License name.
|
2023-07-05 23:33:18 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2024-02-27 13:56:24 +01:00
|
|
|
# Required
|
2024-07-03 09:31:08 -03:00
|
|
|
# Default: inferred from global metadata.
|
2023-06-14 23:59:55 -03:00
|
|
|
license: "mit"
|
|
|
|
|
|
|
|
# Publisher URL.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2023-06-14 23:59:55 -03:00
|
|
|
publisher_url: https://goreleaser.com
|
|
|
|
|
2023-07-05 23:33:18 -03:00
|
|
|
# Publisher support URL.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2023-07-05 23:33:18 -03:00
|
|
|
publisher_support_url: "https://github.com/user/repo/issues/new"
|
|
|
|
|
2023-06-14 23:59:55 -03:00
|
|
|
# Package identifier.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: Publisher.ProjectName.
|
|
|
|
# Templates: allowed.
|
2023-06-14 23:59:55 -03:00
|
|
|
package_identifier: myproject.myproject
|
|
|
|
|
|
|
|
# IDs of the archives to use.
|
|
|
|
# Empty means all IDs.
|
|
|
|
ids:
|
|
|
|
- foo
|
|
|
|
- bar
|
|
|
|
|
2024-02-05 09:18:01 -03:00
|
|
|
# Which format to use.
|
|
|
|
#
|
|
|
|
# Valid options are:
|
|
|
|
# - '': archives or binaries
|
|
|
|
# - 'msi': msi installers (requires the MSI pipe configured, Pro only)
|
|
|
|
# - 'archive': archives (only if format is zip),
|
|
|
|
# - 'binary': binaries
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# This feature is only available in GoReleaser Pro.
|
|
|
|
# Default: ''.
|
2024-02-05 09:18:01 -03:00
|
|
|
use: msi
|
|
|
|
|
2023-06-14 23:59:55 -03:00
|
|
|
# GOAMD64 to specify which amd64 version to use if there are multiple
|
|
|
|
# versions from the build section.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: 'v1'.
|
2023-06-14 23:59:55 -03:00
|
|
|
goamd64: v1
|
|
|
|
|
2024-02-05 09:18:01 -03:00
|
|
|
# Product code to be used.
|
|
|
|
#
|
|
|
|
# Usually needed when `use: msi`.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# This feature is only available in GoReleaser Pro.
|
2024-02-05 09:18:01 -03:00
|
|
|
product_code: AAAA-BBB-CCC-DDD-EEEFFF
|
|
|
|
|
2023-06-14 23:59:55 -03:00
|
|
|
# URL which is determined by the given Token (github, gitlab or gitea).
|
|
|
|
#
|
|
|
|
# Default depends on the client.
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2023-06-14 23:59:55 -03:00
|
|
|
url_template: "https://github.mycompany.com/foo/bar/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
|
|
|
|
|
|
|
|
# Git author used to commit to the repository.
|
|
|
|
commit_author:
|
|
|
|
name: goreleaserbot
|
|
|
|
email: bot@goreleaser.com
|
|
|
|
|
|
|
|
# The project name and current git tag are used in the format string.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2023-06-26 17:09:18 +00:00
|
|
|
commit_msg_template: "{{ .PackageIdentifier }}: {{ .Tag }}"
|
2023-06-14 23:59:55 -03:00
|
|
|
|
|
|
|
# Path for the file inside the repository.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Default: 'manifests/<lowercased first char of publisher>/<publisher>/<name>/<version>'.
|
2024-05-17 04:44:58 -07:00
|
|
|
path: manifests/g/goreleaser/myproject/1.19
|
2023-06-14 23:59:55 -03:00
|
|
|
|
|
|
|
# Your app's homepage.
|
2024-07-03 09:31:08 -03:00
|
|
|
#
|
|
|
|
# Default: inferred from global metadata.
|
2023-06-14 23:59:55 -03:00
|
|
|
homepage: "https://example.com/"
|
|
|
|
|
|
|
|
# Your app's long description.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2024-07-03 09:31:08 -03:00
|
|
|
# Default: inferred from global metadata.
|
2023-06-14 23:59:55 -03:00
|
|
|
description: "Software to create fast and easy drum rolls."
|
|
|
|
|
|
|
|
# License URL.
|
2023-07-05 23:33:18 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2023-06-14 23:59:55 -03:00
|
|
|
license_url: "https://goreleaser.com/license"
|
|
|
|
|
|
|
|
# Copyright.
|
2023-07-05 23:33:18 -03:00
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2023-06-14 23:59:55 -03:00
|
|
|
copyright: "Becker Software LTDA"
|
|
|
|
|
2023-07-05 23:33:18 -03:00
|
|
|
# Copyright URL.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2023-07-05 23:33:18 -03:00
|
|
|
copyright_url: "https://goreleaser.com/copyright"
|
|
|
|
|
2023-06-14 23:59:55 -03:00
|
|
|
# Setting this will prevent goreleaser to actually try to commit the updated
|
2024-04-01 10:01:56 -03:00
|
|
|
# package - instead, it will be stored on the dist directory only,
|
2023-06-14 23:59:55 -03:00
|
|
|
# leaving the responsibility of publishing it to the user.
|
|
|
|
#
|
|
|
|
# If set to auto, the release will not be uploaded to the repository
|
|
|
|
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2023-06-14 23:59:55 -03:00
|
|
|
skip_upload: true
|
|
|
|
|
2023-06-25 04:46:54 +00:00
|
|
|
# Release notes.
|
|
|
|
#
|
|
|
|
# If you want to use the release notes generated by GoReleaser, use
|
|
|
|
# `{{.Changelog}}` as the value.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2023-06-25 04:46:54 +00:00
|
|
|
release_notes: "{{.Changelog}}"
|
|
|
|
|
|
|
|
# Release notes URL.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2023-06-25 04:46:54 +00:00
|
|
|
release_notes_url: "https://foo.bar/changelog/{{.Version}}"
|
|
|
|
|
2023-07-05 23:33:18 -03:00
|
|
|
# Tags.
|
|
|
|
tags:
|
|
|
|
- golang
|
|
|
|
- cli
|
|
|
|
|
2023-09-17 14:22:39 -03:00
|
|
|
# Package dependencies.
|
|
|
|
#
|
2024-06-19 11:44:22 -03:00
|
|
|
# Templates: allowed.
|
2023-09-17 14:22:39 -03:00
|
|
|
dependencies:
|
|
|
|
- package_identifier: Foo.Bar
|
|
|
|
minimum_version: 1.2.3
|
|
|
|
|
2023-07-05 23:33:18 -03:00
|
|
|
|
2023-06-14 23:59:55 -03:00
|
|
|
{% include-markdown "../includes/repository.md" comments=false %}
|
|
|
|
```
|
|
|
|
|
2024-07-08 23:30:10 -03:00
|
|
|
{% include-markdown "../includes/templates.md" comments=false %}
|
2023-06-14 23:59:55 -03:00
|
|
|
|
|
|
|
{% include-markdown "../includes/prs.md" comments=false %}
|