diff options
Diffstat (limited to 'xmake/rules/xcode/application/package.lua')
| -rw-r--r-- | xmake/rules/xcode/application/package.lua | 16 |
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 |
