diff options
| author | ruki <[email protected]> | 2015-11-24 17:56:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-11-24 17:56:18 +0800 |
| commit | 18ed559e87dc28b2e0ccd28443e1bf848c350ed1 (patch) | |
| tree | 5fc7e510757c1da231f4b0bceecff69fe6801f68 /xmake/scripts | |
| parent | 16f6f764e9986cb8a86de667c8bced631bae5f82 (diff) | |
fix package binary file
Diffstat (limited to 'xmake/scripts')
| -rw-r--r-- | xmake/scripts/base/package.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/scripts/base/package.lua b/xmake/scripts/base/package.lua index 12565e8c1..ffb1a0d38 100644 --- a/xmake/scripts/base/package.lua +++ b/xmake/scripts/base/package.lua @@ -161,7 +161,7 @@ function package._done_binary(target) -- copy the binary file to the output directory if count == 1 then - ok, errors = os.cp(string.format("%s/%s", info.targetdir, info.targetfile), outputdir) + ok, errors = os.cp(string.format("%s/%s", info.targetdir, info.targetfile), string.format("%s/%s", outputdir, path.filename(info.targetfile))) else ok, errors = os.cp(string.format("%s/%s", info.targetdir, info.targetfile), string.format("%s/%s", outputdir, rule.filename(path.basename(info.targetfile) .. "_" .. arch, "binary"))) end |
