Skip to content

Commit 9d824b1

Browse files
committed
improve debian xpack
1 parent 32cabe0 commit 9d824b1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

xmake/actions/create/main.lua

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ function _create_project(language, templateid, targetname)
9898
local sourcedir = path.join(tempinst:scriptdir(), "project")
9999
if os.isdir(sourcedir) then
100100
for _, filedir in ipairs(os.filedirs(path.join(sourcedir, "*"))) do
101+
-- https://github.com/xmake-io/xmake/issues/5138#issuecomment-2329238617
101102
os.cp(filedir, projectdir, {writeable = true})
102103
table.insert(filedirs, path.relative(filedir, sourcedir))
103104
end

xmake/plugins/pack/deb/main.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ function _pack_deb(debuild, package)
191191
local debiandir = path.join(sourcedir, "debian")
192192
if not os.isdir(debiandir) then
193193
local debiandir_template = package:get("specfile") or path.join(os.programdir(), "scripts", "xpack", "deb", "debian")
194-
os.cp(debiandir_template, debiandir)
194+
os.cp(debiandir_template, debiandir, {writeable = true})
195195
end
196196

197197
-- replace variables in specfile

0 commit comments

Comments
 (0)