diff options
| author | ruki <[email protected]> | 2020-04-09 23:03:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-09 12:22:44 +0800 |
| commit | 0a3f80680dc4cea8b3f6ac95c5cfc0380567a227 (patch) | |
| tree | 3df6e66203d7cf6423ef98f243750f2215fec581 /xmake/rules/xcode/application/package.lua | |
| parent | 1cc0dbcfb9fa9d07fb84dd641b52a06259ec04cb (diff) | |
install ipa
Diffstat (limited to 'xmake/rules/xcode/application/package.lua')
| -rw-r--r-- | xmake/rules/xcode/application/package.lua | 15 |
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 |
