diff options
| author | ruki <[email protected]> | 2026-04-24 23:08:04 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-24 23:08:04 +0800 |
| commit | a0add317664d49a2755406580e299ff406dc2e46 (patch) | |
| tree | 594a897c6e3cab3e7de75533a4ff54add4710f4f | |
| parent | cdcdab32d46df50ebd30efcacf0e3209b411cde2 (diff) | |
| parent | ff950c53ff7c32a70cc8a9e00ff10335f12a91ea (diff) | |
Merge pull request #7503 from xmake-io/xpack
fix xpack/deb/srpm
| -rw-r--r-- | xmake/plugins/pack/deb/main.lua | 2 | ||||
| -rw-r--r-- | xmake/plugins/pack/srpm/main.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua index 3f7fa4e82..711ee5d4a 100644 --- a/xmake/plugins/pack/deb/main.lua +++ b/xmake/plugins/pack/deb/main.lua @@ -60,7 +60,7 @@ function _get_customcmd(package, installcmds, cmd) dstfile = path.join(dstfile, path.filename(srcfile)) end end - table.insert(installcmds, string.format("install -Dpm0644 \"%s\" \"%s\"", srcfile, dstfile)) + table.insert(installcmds, string.format("install -Dpm0644 \"%s\" \"%s\"", path.absolute(srcfile), dstfile)) end elseif kind == "rm" then local filepath = _translate_filepath(package, cmd.filepath) diff --git a/xmake/plugins/pack/srpm/main.lua b/xmake/plugins/pack/srpm/main.lua index 49e27fca3..aae21163f 100644 --- a/xmake/plugins/pack/srpm/main.lua +++ b/xmake/plugins/pack/srpm/main.lua @@ -81,7 +81,7 @@ function _get_customcmd(package, installcmds, cmd) dstfile = path.join(dstfile, path.filename(srcfile)) end end - table.insert(installcmds, string.format("install -Dpm0644 \"%s\" \"%s\"", srcfile, dstfile)) + table.insert(installcmds, string.format("install -Dpm0644 \"%s\" \"%s\"", path.absolute(srcfile), dstfile)) end elseif kind == "rm" then local filepath = _translate_filepath(package, cmd.filepath) |
