cmake: Align Product Name and Bundle Name on macOS

This commit is contained in:
PatTheMav
2023-11-19 15:04:28 +01:00
committed by Patrick Heyer
parent 76f332a379
commit 9f66c23825
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -175,12 +175,14 @@ build() {
if [[ ${GITHUB_EVENT_NAME} == push && ${GITHUB_REF_NAME} =~ [0-9]+.[0-9]+.[0-9]+(-(rc|beta).+)? ]] {
run_xcodebuild ${archive_args}
run_xcodebuild ${export_args}
mv "OBS Studio.app" OBS.app
} else {
run_xcodebuild ${build_args}
rm -rf OBS.app
mkdir OBS.app
ditto UI/${config}/OBS.app OBS.app
ditto "UI/${config}/OBS Studio.app" OBS.app
}
popd
;;
+3 -2
View File
@@ -50,7 +50,7 @@ function(set_target_properties_obs target)
if(target STREQUAL obs-studio)
set_target_properties(
${target}
PROPERTIES OUTPUT_NAME OBS
PROPERTIES OUTPUT_NAME "OBS Studio"
MACOSX_BUNDLE TRUE
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/cmake/macos/Info.plist.in"
XCODE_EMBED_FRAMEWORKS_REMOVE_HEADERS_ON_COPY YES
@@ -62,7 +62,7 @@ function(set_target_properties_obs target)
set_target_xcode_properties(
${target}
PROPERTIES PRODUCT_BUNDLE_IDENTIFIER com.obsproject.obs-studio
PRODUCT_NAME OBS
PRODUCT_NAME "OBS Studio"
ASSETCATALOG_COMPILER_APPICON_NAME AppIcon
CURRENT_PROJECT_VERSION ${OBS_BUILD_NUMBER}
MARKETING_VERSION ${OBS_VERSION_CANONICAL}
@@ -75,6 +75,7 @@ function(set_target_properties_obs target)
INFOPLIST_KEY_NSHumanReadableCopyright "(c) 2012-${CURRENT_YEAR} Lain Bailey"
INFOPLIST_KEY_NSCameraUsageDescription "OBS needs to access the camera to enable camera sources to work."
INFOPLIST_KEY_NSMicrophoneUsageDescription "OBS needs to access the microphone to enable audio input.")
# cmake-format: on
get_property(obs_dependencies GLOBAL PROPERTY _OBS_DEPENDENCIES)