summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/xpack.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-17 23:54:59 +0800
committerruki <[email protected]>2023-11-17 23:54:59 +0800
commit14f1ed5587ebe19a644f4832c059ff4ec830f6df (patch)
tree27e9173c19fe656f4f96497133748a5df2838c00 /xmake/plugins/pack/xpack.lua
parent45e0cdff6efa8afa9a097b40fef9539c8561b779 (diff)
add targz format
Diffstat (limited to 'xmake/plugins/pack/xpack.lua')
-rw-r--r--xmake/plugins/pack/xpack.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmake/plugins/pack/xpack.lua b/xmake/plugins/pack/xpack.lua
index 4d32d6c08..0c255c6b2 100644
--- a/xmake/plugins/pack/xpack.lua
+++ b/xmake/plugins/pack/xpack.lua
@@ -323,8 +323,9 @@ end
-- get the output filename
function xpack:filename()
local extensions = {
- nsis = ".exe",
- zip = ".zip"
+ nsis = ".exe",
+ zip = ".zip",
+ targz = ".tar.gz"
}
local extension = extensions[self:format()] or ""
return self:basename() .. extension