mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 02:34:23 -05:00
cmake: Align Product Name and Bundle Name on macOS
This commit is contained in:
@@ -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
|
||||
;;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user