mac packaging fixes
This commit is contained in:
4 files changed
+31
-3
No files matched your search
@@ -122,6 +122,13 @@ set(SOURCES
|
||||
if(WIN32)
|
||||
list(APPEND SOURCES src/asteria.rc)
|
||||
endif()
|
||||
if(APPLE)
|
||||
set(APP_ICON_MACOS "${CMAKE_CURRENT_SOURCE_DIR}/src/assets/asteria-qt.icns")
|
||||
set_source_files_properties(${APP_ICON_MACOS} PROPERTIES
|
||||
MACOSX_PACKAGE_LOCATION "Resources"
|
||||
)
|
||||
list(APPEND SOURCES ${APP_ICON_MACOS})
|
||||
endif()
|
||||
|
||||
# Executable
|
||||
qt_add_executable(asteria-qt ${SOURCES})
|
||||
@@ -142,6 +149,7 @@ if(APPLE)
|
||||
MACOSX_BUNDLE_GUI_IDENTIFIER "com.asteria-bookreader.asteria-qt"
|
||||
MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}"
|
||||
MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}"
|
||||
MACOSX_BUNDLE_ICON_FILE "asteria-qt.icns"
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in new issue
Block a user