diff options
| author | ruki <[email protected]> | 2024-09-05 17:15:02 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-09-05 17:15:02 +0800 |
| commit | e9df84ad021c7c8ec020384e250ca5b95fe3e700 (patch) | |
| tree | 3986286cf9b04a0340ca413c01ad242214957ea1 /xmake/plugins/pack | |
| parent | a3f50282bfed783a402b7d97485820ca8ceb0691 (diff) | |
| parent | ee4935050a6165e1da500731fb00f3b08265c266 (diff) | |
Merge pull request #5570 from xmake-io/cpfile
Improve to copy file
Diffstat (limited to 'xmake/plugins/pack')
| -rw-r--r-- | xmake/plugins/pack/deb/main.lua | 2 | ||||
| -rw-r--r-- | xmake/plugins/pack/runself/main.lua | 2 | ||||
| -rw-r--r-- | xmake/plugins/pack/srpm/main.lua | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua index 076b88da3..8088d39bd 100644 --- a/xmake/plugins/pack/deb/main.lua +++ b/xmake/plugins/pack/deb/main.lua @@ -191,7 +191,7 @@ function _pack_deb(debuild, package) local debiandir = path.join(sourcedir, "debian") if not os.isdir(debiandir) then local debiandir_template = package:get("specfile") or path.join(os.programdir(), "scripts", "xpack", "deb", "debian") - os.cp(debiandir_template, debiandir) + os.cp(debiandir_template, debiandir, {writeable = true}) end -- replace variables in specfile 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 |
