diff options
| author | ruki <[email protected]> | 2020-11-14 00:49:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-14 00:49:11 +0800 |
| commit | 86da6d5b870c4d9f6d774a71acb91c7c609d8fd7 (patch) | |
| tree | 980cd43033e995b85190c1a08c5fc31f01264f20 /xmake/rules/xcode/bundle/xmake.lua | |
| parent | 0d59f55c4926ed3566538d2f13e8ad6b402a256b (diff) | |
improve ios app tests
Diffstat (limited to 'xmake/rules/xcode/bundle/xmake.lua')
| -rw-r--r-- | xmake/rules/xcode/bundle/xmake.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/rules/xcode/bundle/xmake.lua b/xmake/rules/xcode/bundle/xmake.lua index a3adfa0f9..c96fc72ac 100644 --- a/xmake/rules/xcode/bundle/xmake.lua +++ b/xmake/rules/xcode/bundle/xmake.lua @@ -106,10 +106,12 @@ rule("xcode.bundle") on_install(function (target) local bundledir = path.absolute(target:data("xcode.bundle.rootdir")) local installdir = target:installdir() - if not os.isdir(installdir) then - os.mkdir(installdir) + if installdir then + if not os.isdir(installdir) then + os.mkdir(installdir) + end + os.vcp(bundledir, installdir) end - os.vcp(bundledir, installdir) end) on_uninstall(function (target) |
