From d007420934df83431706a8fbc1cf0b7d2d02109a Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 9 Apr 2020 22:50:00 +0800 Subject: add ipagen --- xmake/rules/xcode/application/package.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'xmake/rules/xcode/application/package.lua') 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 -- cgit v1.3.1