mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-08 03:31:59 +02:00
4d2bcfdc46
closes #4647 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
41 lines
918 B
Go
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
|