Skip to content

Commit

Permalink
Fix qhot on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBriza committed Oct 10, 2023
1 parent 9e3da05 commit 231a085
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,11 @@ if (LITH_FEATURE_QHOT)
FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
else()
set(qhot_FULL_BINARY_PATH "${qhot_BINARY_DIR}/${qhot_NAME}")
if (APPLE)
set(qhot_FULL_BINARY_PATH "${qhot_BINARY_DIR}/${qhot_NAME}.app/Contents/MacOS/${qhot_NAME}")
else()
set(qhot_FULL_BINARY_PATH "${qhot_BINARY_DIR}/${qhot_NAME}")
endif()
set_target_properties(Lith-qhot PROPERTIES
LINKER_LANGUAGE NONE
OUTPUT_NAME Lith-qhot.sh
Expand Down
2 changes: 1 addition & 1 deletion dist/Lith-qhot.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

export QT_ASSUME_STDERR_HAS_CONSOLE=1

"@qhot_FULL_BINARY_PATH@" --profile-path "@CMAKE_SOURCE_DIR@/dist/qhot-profile.json" "@CMAKE_SOURCE_DIR@//modules/Lith/UI/MainView.qml"
"@qhot_FULL_BINARY_PATH@" --profile-path "@CMAKE_SOURCE_DIR@/dist/qhot-profile.json" "@CMAKE_SOURCE_DIR@/modules/Lith/UI/MainView.qml"
4 changes: 2 additions & 2 deletions dist/qhot-profile.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"import-path": ["../../../modules"],
"plugin-path": ["../../../modules"],
"import-path": ["../../../modules", "../../../../../../modules"],
"plugin-path": ["../../../modules", "../../../../../../modules"],
"quick-controls-conf": "../assets/qtquickcontrols2.conf",
"app-name": "Lith"
}

0 comments on commit 231a085

Please sign in to comment.