From 86da6d5b870c4d9f6d774a71acb91c7c609d8fd7 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 14 Nov 2020 00:49:11 +0800 Subject: improve ios app tests --- xmake/rules/xcode/bundle/xmake.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'xmake/rules/xcode/bundle/xmake.lua') 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) -- cgit v1.3.1