summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/xpack.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-06-13 22:43:51 +0800
committerruki <[email protected]>2024-06-13 22:43:51 +0800
commiteaa2d3484fe75d1c7ca228fa94091936dddaffd6 (patch)
tree22ee60f398550a774ee913d06790c58f94adb4ac /xmake/plugins/pack/xpack.lua
parent598d43eaadf88c5813454e3e79c8e1d56117360a (diff)
improve specfile for pack
Diffstat (limited to 'xmake/plugins/pack/xpack.lua')
-rw-r--r--xmake/plugins/pack/xpack.lua17
1 files changed, 0 insertions, 17 deletions
diff --git a/xmake/plugins/pack/xpack.lua b/xmake/plugins/pack/xpack.lua
index ccf76ebf5..6d82536d4 100644
--- a/xmake/plugins/pack/xpack.lua
+++ b/xmake/plugins/pack/xpack.lua
@@ -319,23 +319,6 @@ function xpack:specvars()
return specvars
end
--- get the specfile path
-function xpack:specfile()
- local specfile = self:get("specfile")
- if not specfile then
- local extensions = {
- wix = ".wxs",
- nsis = ".nsi",
- srpm = ".spec",
- rpm = ".spec",
- runself = ".lsm"
- }
- local extension = extensions[self:format()] or ".spec"
- specfile = path.join(self:buildir(), self:basename() .. extension)
- end
- return specfile
-end
-
-- get the extension
function xpack:extension()
local extension = self:get("extension")