From eaa2d3484fe75d1c7ca228fa94091936dddaffd6 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 13 Jun 2024 22:43:51 +0800 Subject: improve specfile for pack --- xmake/plugins/pack/xpack.lua | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'xmake/plugins/pack/xpack.lua') 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") -- cgit v1.3.1