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/runself/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/plugins/pack/runself/main.lua') diff --git a/xmake/plugins/pack/runself/main.lua b/xmake/plugins/pack/runself/main.lua index 8f25c3e80..eb5c01fb1 100644 --- a/xmake/plugins/pack/runself/main.lua +++ b/xmake/plugins/pack/runself/main.lua @@ -108,9 +108,9 @@ end function _pack_runself(makeself, package) -- install the initial specfile - local specfile = package:specfile() + local specfile = path.join(package:buildir(), package:basename() .. ".lsm") if not os.isfile(specfile) then - local specfile_template = path.join(os.programdir(), "scripts", "xpack", "runself", "makeself.lsm") + local specfile_template = package:get("specfile") or path.join(os.programdir(), "scripts", "xpack", "runself", "makeself.lsm") os.cp(specfile_template, specfile) end -- cgit v1.3.1