summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2024-08-22 22:37:49 +0800
committerruki <[email protected]>2024-08-22 22:37:49 +0800
commit2f58a40660f680e9b54c7d747e962b6c283613ba (patch)
tree591013c074181b37373d65c77ae09f371c2d062c /xmake/modules
parentf279f505880fc1c7390a67b445c2a934fcb04302 (diff)
extract program files
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/utils/archive/archive_xmz.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/utils/archive/archive_xmz.lua b/xmake/modules/utils/archive/archive_xmz.lua
index 7f4425578..74ccc4c92 100644
--- a/xmake/modules/utils/archive/archive_xmz.lua
+++ b/xmake/modules/utils/archive/archive_xmz.lua
@@ -33,7 +33,7 @@ function _archive_files(archivefile, inputfiles, opt)
filepath = path.relative(filepath, curdir)
end
outputfile:write(bytes(2):u16be_set(1, #filepath))
- outputfile:write(inputfile)
+ outputfile:write(filepath)
local data = io.readfile(inputfile, {encoding = "binary"})
vprint("archiving %s, %d bytes", inputfile, data and #data or 0)
outputfile:write(bytes(4):u32be_set(1, #data))