diff options
| author | ruki <[email protected]> | 2020-04-09 22:50:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-09 11:00:04 +0800 |
| commit | d007420934df83431706a8fbc1cf0b7d2d02109a (patch) | |
| tree | b86c7977370238907ea6645ee941233e1b2fa301 /xmake/rules/xcode/application | |
| parent | 7ea632ffc6675c852707e4f7c4787499960c7e11 (diff) | |
add ipagen
Diffstat (limited to 'xmake/rules/xcode/application')
| -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 |
