Add macOS app icon and bundle properties; remove deprecated settings
- Introduced a new app icon file (yaze.icns) for the macOS bundle. - Updated CMake configuration to set macOS bundle properties, including icon file, bundle name, executable name, and versioning information. - Removed outdated macOS bundle settings to streamline the configuration process.
This commit is contained in:
BIN
assets/yaze.icns
Normal file
BIN
assets/yaze.icns
Normal file
Binary file not shown.
@@ -39,7 +39,6 @@ set(
|
|||||||
absl::demangle_internal
|
absl::demangle_internal
|
||||||
absl::strings_internal
|
absl::strings_internal
|
||||||
absl::city
|
absl::city
|
||||||
absl::cordz_functions
|
|
||||||
absl::malloc_internal
|
absl::malloc_internal
|
||||||
absl::graphcycles_internal
|
absl::graphcycles_internal
|
||||||
absl::str_format_internal
|
absl::str_format_internal
|
||||||
|
|||||||
@@ -79,11 +79,6 @@ if (YAZE_BUILD_Z3ED)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MACOS)
|
if(MACOS)
|
||||||
set(MACOSX_BUNDLE_ICON_FILE ${CMAKE_SOURCE_DIR}/win32/yaze.ico)
|
|
||||||
set(MACOSX_BUNDLE_BUNDLE_NAME "yaze")
|
|
||||||
set(MACOSX_BUNDLE_EXECUTABLE_NAME "yaze")
|
|
||||||
set(MACOSX_BUNDLE_GUI_IDENTIFIER "yaze")
|
|
||||||
set(MACOSX_BUNDLE_INFO_STRING "yaze")
|
|
||||||
set_target_properties(yaze
|
set_target_properties(yaze
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
BUNDLE True
|
BUNDLE True
|
||||||
|
|||||||
@@ -21,6 +21,24 @@ if (APPLE)
|
|||||||
# Bundled Resources
|
# Bundled Resources
|
||||||
${YAZE_RESOURCE_FILES}
|
${YAZE_RESOURCE_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Add the app icon to the macOS bundle
|
||||||
|
set(ICON_FILE "${CMAKE_SOURCE_DIR}/assets/yaze.icns")
|
||||||
|
target_sources(yaze PRIVATE ${ICON_FILE})
|
||||||
|
set_source_files_properties(${ICON_FILE} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
|
||||||
|
|
||||||
|
# Set macOS bundle properties
|
||||||
|
set_target_properties(yaze PROPERTIES
|
||||||
|
MACOSX_BUNDLE_ICON_FILE "yaze.icns"
|
||||||
|
MACOSX_BUNDLE_BUNDLE_NAME "Yaze"
|
||||||
|
MACOSX_BUNDLE_EXECUTABLE_NAME "yaze"
|
||||||
|
MACOSX_BUNDLE_GUI_IDENTIFIER "com.scawful.yaze"
|
||||||
|
MACOSX_BUNDLE_INFO_STRING "Yet Another Zelda3 Editor"
|
||||||
|
MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_VERSION}"
|
||||||
|
MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}"
|
||||||
|
MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}"
|
||||||
|
MACOSX_BUNDLE_COPYRIGHT "Copyright © 2024 scawful. All rights reserved."
|
||||||
|
)
|
||||||
else()
|
else()
|
||||||
add_executable(
|
add_executable(
|
||||||
yaze
|
yaze
|
||||||
|
|||||||
Reference in New Issue
Block a user