From 3f15a4e2ba358971067dcd2c3cfccfc4d7ce0854 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Fri, 4 Apr 2025 23:22:53 -0400 Subject: cmd/yeet: support custom filename logic for tarball generation Signed-off-by: Xe Iaso --- cmd/yeet/internal/pkgmeta/package.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/yeet/internal/pkgmeta') diff --git a/cmd/yeet/internal/pkgmeta/package.go b/cmd/yeet/internal/pkgmeta/package.go index e7a9bb9..f955c6e 100644 --- a/cmd/yeet/internal/pkgmeta/package.go +++ b/cmd/yeet/internal/pkgmeta/package.go @@ -18,7 +18,8 @@ type Package struct { Documentation map[string]string `json:"documentation"` // pwd-relative source path, file in /usr/share/doc/$Name Files map[string]string `json:"files"` // pwd-relative source path, rpm destination path - Build func(BuildInput) `json:"build"` + Build func(BuildInput) `json:"build"` + Filename func(Package) string `json:"mkFilename"` } type BuildInput struct { -- cgit v1.2.3