Skip to content

Commit fd7d6c5

Browse files
committed
update some print
1 parent 146bebd commit fd7d6c5

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

xmake/modules/detect/tools/find_macdeployqt.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ function main()
4444
local macdeployqt_path = path.join(qt.bindir, "macdeployqt")
4545
if os.isfile(macdeployqt_path) then
4646
program = {program = macdeployqt_path}
47+
print("found macdeployqt in Qt SDK: %s", macdeployqt_path)
4748
end
4849
end
4950
end
50-
51+
print("macdeployqt: %s", program and program.program or "not found")
5152
return program
5253
end

xmake/plugins/pack/dmg/main.lua

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,6 @@ end
7474

7575
-- detect if this is a Qt project
7676
function _is_qt_project(package)
77-
-- Method 1: Check for Qt libraries in links
78-
local links = package:get("links")
79-
if links then
80-
for _, link in ipairs(links) do
81-
if link:lower():find("qt") then
82-
print("Qt project detected via link:", link)
83-
return true
84-
end
85-
end
86-
end
87-
8877
-- Method 2: Check executable for Qt dependencies using otool
8978
local app_source, _ = _find_app_bundle(package)
9079
if app_source then
@@ -527,10 +516,7 @@ end
527516
function _pack_dmg(package)
528517
local is_qt = _is_qt_project(package)
529518
-- find required tools
530-
local create_dmg = _get_create_dmg()
531-
if not create_dmg then
532-
return false
533-
end
519+
local create_dmg = assert(_get_create_dmg(), "create-dmg not found")
534520

535521
-- find existing .app bundle
536522
local app_source, appbundle_name = _find_app_bundle(package)

0 commit comments

Comments
 (0)