summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/application
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-09 22:50:00 +0800
committerruki <[email protected]>2020-04-09 11:00:04 +0800
commitd007420934df83431706a8fbc1cf0b7d2d02109a (patch)
treeb86c7977370238907ea6645ee941233e1b2fa301 /xmake/rules/xcode/application
parent7ea632ffc6675c852707e4f7c4787499960c7e11 (diff)
add ipagen
Diffstat (limited to 'xmake/rules/xcode/application')
-rw-r--r--xmake/rules/xcode/application/package.lua16
1 files changed, 15 insertions, 1 deletions
diff --git a/xmake/rules/xcode/application/package.lua b/xmake/rules/xcode/application/package.lua
index 738af9be7..c9fd9dc51 100644
--- a/xmake/rules/xcode/application/package.lua
+++ b/xmake/rules/xcode/application/package.lua
@@ -18,6 +18,20 @@
-- @file package.lua
--
+-- imports
+import("private.tools.ipagen")
+
-- main entry
-function main (target)
+function main (target, opt)
+
+ -- get app directory
+ local appdir = target:data("xcode.bundle.rootdir")
+
+ -- generate *.ipa file
+ local ipafile = path.join(path.directory(appdir), path.basename(appdir) .. ".ipa")
+ ipagen(appdir, ipafile)
+
+ -- trace
+ cprint("output: ${bright}%s", ipafile)
+ cprint("${color.success}package ok!")
end