From c3bec4b1e483f5bcf443cf1a26b3b8bd8cfa2fba Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 16 Dec 2020 23:49:44 +0800 Subject: improve app rules --- xmake/rules/xcode/bundle/xmake.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 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 c96fc72ac..9cbd92b6f 100644 --- a/xmake/rules/xcode/bundle/xmake.lua +++ b/xmake/rules/xcode/bundle/xmake.lua @@ -35,7 +35,7 @@ rule("xcode.bundle") -- get contents and resources directory local contentsdir = bundledir local resourcesdir = bundledir - if is_plat("macosx") then + if target:is_plat("macosx") then contentsdir = path.join(bundledir, "Contents") resourcesdir = path.join(bundledir, "Contents", "Resources") end @@ -74,7 +74,7 @@ rule("xcode.bundle") progress.show(opt.progress, "${color.build.target}generating.xcode.$(mode) %s", path.filename(bundledir)) -- copy target file - if is_plat("macosx") then + if target:is_plat("macosx") then os.vcp(target:targetfile(), path.join(contentsdir, "MacOS", path.filename(target:targetfile()))) else os.vcp(target:targetfile(), path.join(contentsdir, path.filename(target:targetfile()))) -- cgit v1.3.1