File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,10 @@ function main()
44
44
local macdeployqt_path = path .join (qt .bindir , " macdeployqt" )
45
45
if os .isfile (macdeployqt_path ) then
46
46
program = {program = macdeployqt_path }
47
+ print (" found macdeployqt in Qt SDK: %s" , macdeployqt_path )
47
48
end
48
49
end
49
50
end
50
-
51
+ print ( " macdeployqt: %s " , program and program . program or " not found " )
51
52
return program
52
53
end
Original file line number Diff line number Diff line change 74
74
75
75
-- detect if this is a Qt project
76
76
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
-
88
77
-- Method 2: Check executable for Qt dependencies using otool
89
78
local app_source , _ = _find_app_bundle (package )
90
79
if app_source then
527
516
function _pack_dmg (package )
528
517
local is_qt = _is_qt_project (package )
529
518
-- 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" )
534
520
535
521
-- find existing .app bundle
536
522
local app_source , appbundle_name = _find_app_bundle (package )
You can’t perform that action at this time.
0 commit comments