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/runself/main.lua | |
| parent | a3f50282bfed783a402b7d97485820ca8ceb0691 (diff) | |
| parent | ee4935050a6165e1da500731fb00f3b08265c266 (diff) | |
Merge pull request #5570 from xmake-io/cpfile
Improve to copy file
Diffstat (limited to 'xmake/plugins/pack/runself/main.lua')
| -rw-r--r-- | xmake/plugins/pack/runself/main.lua | 2 |
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 |
