diff options
| author | ruki <[email protected]> | 2020-04-10 23:35:08 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-04-10 15:30:50 +0800 |
| commit | b25009c38659c92aec90184a1cf803f7e1dcf4b1 (patch) | |
| tree | 1d7ff28f8989ddb92a390cee1463e41754addc99 /xmake/rules/xcode/application/install.lua | |
| parent | 4b5c87bcd8503baed369c6030e132684e797049b (diff) | |
improve to install iosapp
Diffstat (limited to 'xmake/rules/xcode/application/install.lua')
| -rw-r--r-- | xmake/rules/xcode/application/install.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/rules/xcode/application/install.lua b/xmake/rules/xcode/application/install.lua index fd90694f6..2b2c5069b 100644 --- a/xmake/rules/xcode/application/install.lua +++ b/xmake/rules/xcode/application/install.lua @@ -19,6 +19,7 @@ -- -- imports +import("core.base.task") import("lib.detect.find_tool") -- install for ios @@ -29,7 +30,10 @@ function _install_for_ios(target) -- get *.ipa file local ipafile = path.join(path.directory(appdir), path.basename(appdir) .. ".ipa") - assert(ipafile, "please run `xmake package` first!") + if not os.isfile(ipafile) or os.mtime(target:targetfile()) > os.mtime(ipafile) then + task.run("package", {target = target:name()}) + end + assert(os.isfile(ipafile), "please run `xmake package` first!") -- find ideviceinstaller local ideviceinstaller = assert(find_tool("ideviceinstaller"), "ideviceinstaller not found!") |
