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 4343b1a76..91284edc0 100644
--- a/xmake/plugins/pack/runself/main.lua
+++ b/xmake/plugins/pack/runself/main.lua
@@ -111,7 +111,7 @@ function _pack_runself(makeself, package)
local specfile = path.join(package:buildir(), 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)
+ os.cp(specfile_template, specfile, {writeable = true})
end
-- replace variables in specfile