mac packaging fixes

This commit is contained in:
Agel committed 2026-11-12 15:51:24 +01:00
1 parent c3a89e88d2
commit 5151e40bde
4 files changed
+31 -3

No files matched your search

+8
View File
@@ -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()