summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/application/load.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-04-10 22:58:21 +0800
committerruki <[email protected]>2020-04-10 11:50:12 +0800
commit1307e332023cd31e061e0bd954201c5f41a44026 (patch)
treea5e4f9f8854f3d1c8dab7c44ceae09e1fbbc4ce7 /xmake/rules/xcode/application/load.lua
parent25121b2721dbcee151eaad958c55a54617eea60a (diff)
improve install and uninstall app
Diffstat (limited to 'xmake/rules/xcode/application/load.lua')
-rw-r--r--xmake/rules/xcode/application/load.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/rules/xcode/application/load.lua b/xmake/rules/xcode/application/load.lua
index 071b94901..ddac69126 100644
--- a/xmake/rules/xcode/application/load.lua
+++ b/xmake/rules/xcode/application/load.lua
@@ -45,6 +45,11 @@ function main (target)
target:set("targetdir", bundledir)
end
+ -- set install directory
+ if is_plat("macosx") and not target:get("installdir") then
+ target:set("installdir", "/Applications")
+ end
+
-- add frameworks
if is_plat("macosx") then
target:add("frameworks", "AppKit")