summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-06-27 10:42:45 +0800
committerGitHub <[email protected]>2026-06-27 10:42:45 +0800
commitfbf7ed31b095f201a577b86aafd523cb4efa3e8c (patch)
tree1dc6bae02e691e82ad36e160e70283a5e436999f
parent9f54e096b92c27f3e382b5450061d0afa1297886 (diff)
parentd4dacf8eefac73527dc81b2b531f488d59c4dbee (diff)
Merge pull request #7622 from binLep/patch-1
fix(deb): set the default maintainer when packaging deb files
-rw-r--r--xmake/plugins/pack/deb/main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua
index 711ee5d4a..501af8c57 100644
--- a/xmake/plugins/pack/deb/main.lua
+++ b/xmake/plugins/pack/deb/main.lua
@@ -123,6 +123,8 @@ function _get_specvars(package)
end
specvars.PACKAGE_DATE = datestr or ""
local author = package:get("author") or "unknown <[email protected]>"
+ local maintainer = package:get("maintainer") or author
+ specvars.PACKAGE_MAINTAINER = maintainer
specvars.PACKAGE_COPYRIGHT = os.date("%Y") .. " " .. author
specvars.PACKAGE_INSTALLCMDS = function ()
local prefixdir = package:get("prefixdir")