aboutsummaryrefslogtreecommitdiff
path: root/cmd/yeet/internal/pkgmeta/package.go
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-04-04 23:22:53 -0400
committerXe Iaso <me@xeiaso.net>2025-04-04 23:22:53 -0400
commit3f15a4e2ba358971067dcd2c3cfccfc4d7ce0854 (patch)
tree9a885b1501cc98024d2a5e9f68c487cf6a6ed60a /cmd/yeet/internal/pkgmeta/package.go
parente907932c3a5a49bbd53ee3d8af391636b386cd38 (diff)
downloadx-3f15a4e2ba358971067dcd2c3cfccfc4d7ce0854.tar.xz
x-3f15a4e2ba358971067dcd2c3cfccfc4d7ce0854.zip
cmd/yeet: support custom filename logic for tarball generationv1.13.4
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/yeet/internal/pkgmeta/package.go')
-rw-r--r--cmd/yeet/internal/pkgmeta/package.go3
1 files changed, 2 insertions, 1 deletions
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 {