summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-05 00:59:16 +0800
committerruki <[email protected]>2024-09-05 00:59:16 +0800
commitee4935050a6165e1da500731fb00f3b08265c266 (patch)
tree396e8240da274fe077d1f15b2206dbf6548d04c2
parent9d824b19fdf646557585c9a74bae05b6d970e0af (diff)
improve xpack spec
-rw-r--r--xmake/plugins/pack/runself/main.lua2
-rw-r--r--xmake/plugins/pack/srpm/main.lua2
2 files changed, 2 insertions, 2 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
diff --git a/xmake/plugins/pack/srpm/main.lua b/xmake/plugins/pack/srpm/main.lua
index a0b2d2dad..72b76563e 100644
--- a/xmake/plugins/pack/srpm/main.lua
+++ b/xmake/plugins/pack/srpm/main.lua
@@ -205,7 +205,7 @@ function _pack_srpm(rpmbuild, package)
local specfile = path.join(package:buildir(), package:basename() .. ".spec")
if not os.isfile(specfile) then
local specfile_template = package:get("specfile") or path.join(os.programdir(), "scripts", "xpack", "srpm", "srpm.spec")
- os.cp(specfile_template, specfile)
+ os.cp(specfile_template, specfile, {writeable = true})
end
-- replace variables in specfile