1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
goreleaser/internal/pipe/brew/template.go
Carlos Alexandro Becker 4d2bcfdc46
feat(brew): allow to set headers in the url (#4648)
closes  #4647

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2024-02-26 17:22:12 -03:00

41 lines
918 B
Go

package brew
import (
"embed"
"github.com/goreleaser/goreleaser/pkg/config"
)
type templateData struct {
Name string
Desc string
Homepage string
Version string
License string
Caveats []string
Plist string
PostInstall []string
Dependencies []config.HomebrewDependency
Conflicts []string
Tests []string
CustomRequire string
CustomBlock []string
LinuxPackages []releasePackage
MacOSPackages []releasePackage
Service []string
HasOnlyAmd64MacOsPkg bool
}
type releasePackage struct {
DownloadURL string
SHA256 string
OS string
Arch string
DownloadStrategy string
Install []string
Headers []string
}
//go:embed templates
var formulaTemplate embed.FS