diff options
| author | ruki <[email protected]> | 2024-09-05 00:57:57 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-09-05 00:57:57 +0800 |
| commit | 9d824b19fdf646557585c9a74bae05b6d970e0af (patch) | |
| tree | 7eb4bca763826e76d6667aa4064034101c476dc1 | |
| parent | 32cabe08be37cbc98d02a81076cbe8fe2fadda9b (diff) | |
improve debian xpack
| -rw-r--r-- | xmake/actions/create/main.lua | 1 | ||||
| -rw-r--r-- | xmake/plugins/pack/deb/main.lua | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/xmake/actions/create/main.lua b/xmake/actions/create/main.lua index 14a7dc0a6..6f65b2785 100644 --- a/xmake/actions/create/main.lua +++ b/xmake/actions/create/main.lua @@ -98,6 +98,7 @@ function _create_project(language, templateid, targetname) local sourcedir = path.join(tempinst:scriptdir(), "project") if os.isdir(sourcedir) then for _, filedir in ipairs(os.filedirs(path.join(sourcedir, "*"))) do + -- https://github.com/xmake-io/xmake/issues/5138#issuecomment-2329238617 os.cp(filedir, projectdir, {writeable = true}) table.insert(filedirs, path.relative(filedir, sourcedir)) end 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 |
