summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-06-30 11:06:41 +0800
committerGitHub <[email protected]>2026-06-30 11:06:41 +0800
commit5cb46ce73332d1cb361b1869e92441d24a017469 (patch)
tree5d210d89e94962f2e6413510fafc674102cc9251
parentd17119e9d5d33a123cb8a87263415bf284984983 (diff)
parent126942270243c80b35e47b99d7144a683d90c313 (diff)
Merge pull request #7627 from binLep/dev
fix(deb): xmake could not be found #7626
-rw-r--r--xmake/plugins/pack/deb/main.lua3
-rw-r--r--xmake/scripts/xpack/deb/debian/compat1
2 files changed, 3 insertions, 1 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua
index 501af8c57..ebbdb548e 100644
--- a/xmake/plugins/pack/deb/main.lua
+++ b/xmake/plugins/pack/deb/main.lua
@@ -255,7 +255,8 @@ function _pack_deb(debuild, package)
archive.archive(archivefile, archivefiles, {curdir = rootdir, compress = "best"})
-- build package
- os.vrunv(debuild, {"-us", "-uc"}, {curdir = sourcedir})
+ -- https://github.com/xmake-io/xmake/issues/7626
+ os.vrunv(debuild, {"-e", "PATH=" .. (os.getenv("PATH") or ""), "-us", "-uc"}, {curdir = sourcedir})
-- copy deb file
os.vcp(path.join(path.directory(sourcedir), "*.deb"), package:outputfile())
diff --git a/xmake/scripts/xpack/deb/debian/compat b/xmake/scripts/xpack/deb/debian/compat
new file mode 100644
index 000000000..ec635144f
--- /dev/null
+++ b/xmake/scripts/xpack/deb/debian/compat
@@ -0,0 +1 @@
+9