summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/application/package.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/xcode/application/package.lua')
-rw-r--r--xmake/rules/xcode/application/package.lua15
1 files changed, 12 insertions, 3 deletions
diff --git a/xmake/rules/xcode/application/package.lua b/xmake/rules/xcode/application/package.lua
index c9fd9dc51..059b7b219 100644
--- a/xmake/rules/xcode/application/package.lua
+++ b/xmake/rules/xcode/application/package.lua
@@ -21,17 +21,26 @@
-- imports
import("private.tools.ipagen")
--- main entry
-function main (target, opt)
+-- package for ios
+function _package_for_ios(target)
-- get app directory
local appdir = target:data("xcode.bundle.rootdir")
- -- generate *.ipa file
+ -- get *.ipa file
local ipafile = path.join(path.directory(appdir), path.basename(appdir) .. ".ipa")
+
+ -- generate *.ipa file
ipagen(appdir, ipafile)
-- trace
cprint("output: ${bright}%s", ipafile)
cprint("${color.success}package ok!")
end
+
+-- main entry
+function main (target, opt)
+ if is_plat("iphoneos") then
+ _package_for_ios(target)
+ end
+end