diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b2daf64..3d6385a 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -156,6 +156,285 @@ nfpms: - statically-linked-binary - changelog-file-missing-in-native-package +winget: + - # Name of the recipe + # + # Default: ProjectName + # Templates: allowed + name: TkeyRunapp + + # Publisher name. + # + # Templates: allowed + # Required. + publisher: Tillitis + + # Your app's description. + # + # Templates: allowed + # Required. + short_description: "Tool to load an application binary onto the TKey" + + # License name. + # + # Templates: allowed + # Required. + license: "BSD-2-Clause" + + # Publisher URL. + # + # Templates: allowed + publisher_url: https://tillitis.se/ + + # Publisher support URL. + # + # Templates: allowed + publisher_support_url: "https://github.com/tillitis/tkey-devtools/issues/new" + + # Package identifier. + # + # Default: Publisher.ProjectName + # Templates: allowed + package_identifier: Tillitis.TkeyRunapp + + # # URL which is determined by the given Token (github, gitlab or gitea). + # # + # # Default depends on the client. + # # Templates: allowed + # 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: [email protected] + + # # The project name and current git tag are used in the format string. + # # + # # Templates: allowed + # commit_msg_template: "{{ .PackageIdentifier }}: {{ .Tag }}" + + # # Path for the file inside the repository. + # # + # # Default: manifests/// + # path: manifests/g/goreleaser/1.19 + + # Your app's homepage. + homepage: "https://tillitis.se/" + + # Your app's long description. + # + # Templates: allowed + description: "TKey-runapp is a tool to load an application binary onto the Tillitis TKey and start it" + + # License URL. + # + # Templates: allowed + license_url: "https://github.com/tillitis/tkey-devtools/blob/main/LICENSE" + + # Copyright. + # + # Templates: allowed + copyright: "Tillitis AB" + + # Copyright URL. + # + # Templates: allowed + #copyright_url: "https://goreleaser.com/copyright" + + # Setting this will prevent goreleaser to actually try to commit the updated + # package - instead, it will be stored on the dist folder only, + # 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 + # + # Templates: allowed + skip_upload: true + + # Release notes. + # + # If you want to use the release notes generated by GoReleaser, use + # `{{.Changelog}}` as the value. + # + # Templates: allowed + release_notes: "{{.Changelog}}" + + # Release notes URL. + # + # Templates: allowed + #release_notes_url: "https://foo.bar/changelog/{{.Version}}" + + # Tags. + # tags: + # - golang + # - cli + + # Repository to push the generated files to. + repository: + # Repository owner. + # + # Templates: allowed + owner: tillitis + + # Repository name. + # + # Templates: allowed + name: winget-pkgs + +brews: + - + # Name of the recipe + # + # Default: ProjectName + # Templates: allowed + name: tkey-runapp + + # NOTE: make sure the url_template, the token and given repo (github or + # gitlab) owner and name are from the same kind. + # We will probably unify this in the next major version like it is + # done with scoop. + + # URL which is determined by the given Token (github, gitlab or gitea). + # + # Default depends on the client. + # Templates: allowed + #url_template: "https://github.mycompany.com/foo/bar/releases/download/{{ .Tag }}/{{ .ArtifactName }}" + + # Allows you to set a custom download strategy. Note that you'll need + # to implement the strategy and add it to your tap repository. + # Example: https://docs.brew.sh/Formula-Cookbook#specifying-the-download-strategy-explicitly + #download_strategy: CurlDownloadStrategy + + # Allows you to add a custom require_relative at the top of the formula + # template. + #custom_require: custom_download_strategy + + # 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. + # + # Templates: allowed + commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" + + # Folder inside the repository to put the formula. + directory: Formula + + # Caveats for the user of your binary. + #caveats: "How to use this binary" + + # Your app's homepage. + homepage: "https://tillitis.se/" + + # Your app's description. + # + # Templates: allowed + description: "Tool to load an application binary onto the TKey" + + # SPDX identifier of your app's license. + license: "BSD-2-Clause" + + # Setting this will prevent goreleaser to actually try to commit the updated + # formula - instead, the formula file will be stored on the dist folder only, + # leaving the responsibility of publishing it to the user. + # If set to auto, the release will not be uploaded to the homebrew tap + # in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1 + # + # Templates: allowed + skip_upload: true + + # Packages your package depends on. + # dependencies: + # - name: git + # - name: zsh + # type: optional + # - name: fish + # version: v1.2.3 + # # if providing both version and type, only the type will be taken into + # # account. + # - name: elvish + # type: optional + # version: v1.2.3 + + # # Packages that conflict with your package. + # conflicts: + # - svn + # - bash + + # # Specify for packages that run as a service. + # plist: | + # + # # ... + + # # Service block. + # # + # # Since: v1.7 + # service: | + # run: foo/bar + # # ... + + # # So you can `brew test` your formula. + # # + # # Template: allowed + test: | + assert_match version.to_str, shell_output("#{bin}/tkey-runapp --version 2>&1") + + # Custom install script for brew. + # Template: allowed + # Default: 'bin.install "BinaryName"' + install: | + bin.install "tkey-runapp" + # man1.install "man/tkey-sign.1" + + # # Additional install instructions so you don't need to override `install`. + # # + # # Template: allowed + # # Since: v1.20. + # extra_install: | + # bash_completion.install "completions/foo.bash" => "foo" + # man1.install "man/foo.1.gz" + # # ... + + # # Custom post_install script for brew. + # # Could be used to do any additional work after the "install" script + # post_install: | + # etc.install "app-config.conf" + # # ... + + # Repository to push the generated files to. + repository: + # Repository owner. + # + # Templates: allowed + owner: tillitis + + # Repository name. + # + # Templates: allowed + name: homebrew-tkey + + # Optionally a branch can be provided. + # + # Default: default repository branch + # Templates: allowed + branch: main + + # Sets up pull request creation instead of just pushing to the given branch. + # Make sure the 'branch' property is different from base before enabling + # it. + # + # Since: v1.17 + pull_request: + # Whether to enable it or not. + enabled: false + + # Whether to open the PR as a draft or not. + # + # Since: v1.19 + draft: true + checksum: name_template: 'checksums.txt' snapshot: