Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlok committed May 14, 2024
1 parent 57bcb07 commit eaf4546
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ if (WIN32)
elseif(APPLE)
set(CMAKE_MACOSX_BUNDLE ON)
set(CMAKE_MACOSX_RPATH ON)
install(TARGETS vnote BUNDLE DESTINATION . RUNTIME DESTINATION .)
install(TARGETS vnote BUNDLE DESTINATION ${CMAKE_INSTALL_DIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
set_target_properties(vnote
PROPERTIES
MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT_NAME}"
Expand Down
2 changes: 1 addition & 1 deletion src/CPackMacDeployQt.cmake.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
execute_process(COMMAND "${MACDEPLOYQT_EXECUTABLE}" ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.app -dmg
execute_process(COMMAND "${MACDEPLOYQT_EXECUTABLE}" ${CMAKE_CURRENT_BINARY_DIR}/vnote.app -dmg
--always-overwirte
WORKING_DIRECTORY ${CPACK_PACKAGE_DIRECTORY}
)
2 changes: 1 addition & 1 deletion src/Packaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ elseif(APPLE)
message(STATUS "Package generation - MacOS - DMG")

list(APPEND CPACK_GENERATOR External)
set(CPACK_BUNDLE_NAME "vnote" )
set(CPACK_BUNDLE_NAME "${PROJECT_NAME}" )
set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_LIST_DIR}/data/core/Info.plist")
set(CPACK_BUNDLE_ICON "${CMAKE_CURRENT_LIST_DIR}/data/core/icons/vnote.icns")
set(CPACK_DMG_VOLUME_NAME "${PROJECT_NAME}")
Expand Down

0 comments on commit eaf4546

Please sign in to comment.