2017-07-16 15:06:32 -03:00
|
|
|
package brew
|
|
|
|
|
2024-01-19 12:41:28 -03:00
|
|
|
import (
|
|
|
|
"embed"
|
|
|
|
|
|
|
|
"github.com/goreleaser/goreleaser/pkg/config"
|
|
|
|
)
|
2020-05-24 18:10:25 +03:00
|
|
|
|
2017-07-16 15:06:32 -03:00
|
|
|
type templateData struct {
|
2022-02-25 19:57:46 -05:00
|
|
|
Name string
|
|
|
|
Desc string
|
|
|
|
Homepage string
|
|
|
|
Version string
|
|
|
|
License string
|
|
|
|
Caveats []string
|
|
|
|
Plist string
|
2022-03-16 21:40:25 -03:00
|
|
|
PostInstall []string
|
2022-02-25 19:57:46 -05:00
|
|
|
Dependencies []config.HomebrewDependency
|
|
|
|
Conflicts []string
|
|
|
|
Tests []string
|
|
|
|
CustomRequire string
|
|
|
|
CustomBlock []string
|
|
|
|
LinuxPackages []releasePackage
|
|
|
|
MacOSPackages []releasePackage
|
2022-03-16 21:12:57 -03:00
|
|
|
Service []string
|
2022-02-25 19:57:46 -05:00
|
|
|
HasOnlyAmd64MacOsPkg bool
|
2019-06-10 10:35:19 -03:00
|
|
|
}
|
|
|
|
|
2021-09-28 21:34:35 -03:00
|
|
|
type releasePackage struct {
|
|
|
|
DownloadURL string
|
|
|
|
SHA256 string
|
|
|
|
OS string
|
|
|
|
Arch string
|
|
|
|
DownloadStrategy string
|
2021-10-18 09:31:20 -03:00
|
|
|
Install []string
|
2024-02-26 17:22:12 -03:00
|
|
|
Headers []string
|
2017-07-16 15:06:32 -03:00
|
|
|
}
|
|
|
|
|
2024-01-19 12:41:28 -03:00
|
|
|
//go:embed templates
|
|
|
|
var formulaTemplate embed.FS
|