1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-13 13:48:40 +02:00

fix: remove filetype exe from chocolatey template ()

When submitting a new project to chocolatey using goreleaser, a reviewer
told me that a line in the template is incorrect:

<img width="1054" alt="image"
src="https://github.com/user-attachments/assets/423c4493-85fa-4cc5-8a74-97d2a561743b">

<img width="1052" alt="image"
src="https://github.com/user-attachments/assets/04425da1-eb90-4504-9308-9a2e49ca85d8">

> since that is not a valid parameter to the
Install-ChocolateyZipPackage function:
https://docs.chocolatey.org/en-us/create/functions/install-chocolateyzippackage/

This PR aims to correct that by removing the line from the template as
requested
This commit is contained in:
Leo Robinovitch 2024-09-27 06:32:11 -07:00 committed by GitHub
parent 962973441b
commit 33dfbce482
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -20,7 +20,6 @@ $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$packageArgs = @{
packageName = $packageName
unzipLocation = $toolsDir
fileType = 'exe'
{{- range $release := .Packages }}
{{- if eq $release.Arch "amd64" }}
url64bit = '{{ $release.DownloadURL }}'