summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/runself/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/pack/runself/main.lua')
-rw-r--r--xmake/plugins/pack/runself/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/pack/runself/main.lua b/xmake/plugins/pack/runself/main.lua
index 91284edc0..47ab74eee 100644
--- a/xmake/plugins/pack/runself/main.lua
+++ b/xmake/plugins/pack/runself/main.lua
@@ -108,7 +108,7 @@ end
function _pack_runself(makeself, package)
-- install the initial specfile
- local specfile = path.join(package:buildir(), package:basename() .. ".lsm")
+ local specfile = path.join(package:builddir(), package:basename() .. ".lsm")
if not os.isfile(specfile) then
local specfile_template = package:get("specfile") or path.join(os.programdir(), "scripts", "xpack", "runself", "makeself.lsm")
os.cp(specfile_template, specfile, {writeable = true})