summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/framework
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-14 00:49:11 +0800
committerruki <[email protected]>2020-11-14 00:49:11 +0800
commit86da6d5b870c4d9f6d774a71acb91c7c609d8fd7 (patch)
tree980cd43033e995b85190c1a08c5fc31f01264f20 /xmake/rules/xcode/framework
parent0d59f55c4926ed3566538d2f13e8ad6b402a256b (diff)
improve ios app tests
Diffstat (limited to 'xmake/rules/xcode/framework')
-rw-r--r--xmake/rules/xcode/framework/xmake.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/xmake/rules/xcode/framework/xmake.lua b/xmake/rules/xcode/framework/xmake.lua
index 3d8137aeb..50530a61f 100644
--- a/xmake/rules/xcode/framework/xmake.lua
+++ b/xmake/rules/xcode/framework/xmake.lua
@@ -160,10 +160,12 @@ rule("xcode.framework")
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)