From b638bcfdaac7082e9d344b869acd822e4e8c2b09 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 19 Feb 2026 00:47:39 +0800 Subject: improve qt deploy for macapp --- xmake/rules/qt/deploy/macosx.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xmake/rules/qt/deploy/macosx.lua b/xmake/rules/qt/deploy/macosx.lua index deeafb11f..ac26bbd7d 100644 --- a/xmake/rules/qt/deploy/macosx.lua +++ b/xmake/rules/qt/deploy/macosx.lua @@ -166,7 +166,10 @@ function main(target, opt) end -- do deploy - local argv = {target_app, "-always-overwrite"} + local argv = {target_app} + if target:is_rebuilt() then + table.insert(argv, "-always-overwrite") + end if option.get("diagnosis") then table.insert(argv, "-verbose=3") elseif option.get("verbose") then -- cgit v1.3.1