diff options
| author | binlep <[email protected]> | 2026-06-29 15:07:38 +0800 |
|---|---|---|
| committer | binlep <[email protected]> | 2026-06-29 15:07:38 +0800 |
| commit | 0b5514fee79c9877ba23e26e974b10d980f2c582 (patch) | |
| tree | 3342c6ccb97919516c3cdb496eff95f2db1a3912 | |
| parent | fbf7ed31b095f201a577b86aafd523cb4efa3e8c (diff) | |
fix(deb): xmake could not be found
| -rw-r--r-- | xmake/plugins/pack/deb/main.lua | 2 | ||||
| -rw-r--r-- | xmake/scripts/xpack/deb/debian/compat | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua index 501af8c57..bac70c237 100644 --- a/xmake/plugins/pack/deb/main.lua +++ b/xmake/plugins/pack/deb/main.lua @@ -255,7 +255,7 @@ function _pack_deb(debuild, package) archive.archive(archivefile, archivefiles, {curdir = rootdir, compress = "best"}) -- build package - os.vrunv(debuild, {"-us", "-uc"}, {curdir = sourcedir}) + os.vrunv(debuild, {"-e", "PATH=" .. os.getenv("PATH"), "-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 |
