summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/xpack.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-23 22:38:03 +0800
committerruki <[email protected]>2023-11-23 22:10:50 +0800
commit95195e3199a3e03e66e6be94bf14c83c694cc8ff (patch)
tree0bdba24bf316824906ef4497eee26ece9f44f09c /xmake/plugins/pack/xpack.lua
parent6b400aa1f7a578694079ccb84813a02192cb28e6 (diff)
add runself stub
Diffstat (limited to 'xmake/plugins/pack/xpack.lua')
-rw-r--r--xmake/plugins/pack/xpack.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/plugins/pack/xpack.lua b/xmake/plugins/pack/xpack.lua
index e5829fd45..6715fb178 100644
--- a/xmake/plugins/pack/xpack.lua
+++ b/xmake/plugins/pack/xpack.lua
@@ -325,7 +325,8 @@ end
-- get the specfile path
function xpack:specfile()
local extensions = {
- nsis = ".nsi"
+ nsis = ".nsi",
+ runself = ".sh"
}
local extension = extensions[self:format()] or ".spec"
return self:get("specfile") or path.join(self:buildir(), self:basename() .. extension)
@@ -338,7 +339,8 @@ function xpack:extension()
local extensions = {
nsis = ".exe",
zip = ".zip",
- targz = ".tar.gz"
+ targz = ".tar.gz",
+ runself = ".sh"
}
extension = extensions[self:format()] or ""
end