mirror of
https://github.com/goreleaser/goreleaser.git
synced 2024-12-31 01:53:50 +02:00
ec2db4a727
<!-- Hi, thanks for contributing! Please make sure you read our CONTRIBUTING guide. Also, add tests and the respective documentation changes as well. --> <!-- If applied, this commit will... --> ... <!-- Why is this change being made? --> ... <!-- # Provide links to any relevant tickets, URLs or other resources --> ... --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
40 lines
892 B
Go
40 lines
892 B
Go
package brew
|
|
|
|
import (
|
|
"embed"
|
|
|
|
"github.com/goreleaser/goreleaser/v2/pkg/config"
|
|
)
|
|
|
|
type templateData struct {
|
|
Name string
|
|
Desc string
|
|
Homepage string
|
|
Version string
|
|
License string
|
|
Caveats []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
|