diff --git a/native/templates/ios/CMakeLists.txt b/native/templates/ios/CMakeLists.txt index fcb9beacd5..616b9f5c64 100755 --- a/native/templates/ios/CMakeLists.txt +++ b/native/templates/ios/CMakeLists.txt @@ -13,6 +13,11 @@ set(PROJ_COMMON_SOURCES ${CMAKE_CURRENT_LIST_DIR}/../common/Classes/Game.h ${CMAKE_CURRENT_LIST_DIR}/../common/Classes/Game.cpp ) +if (USE_PORTRAIT) + configure_file(${CMAKE_CURRENT_LIST_DIR}/LaunchScreenBackgroundPortrait.png ${CMAKE_CURRENT_LIST_DIR}/LaunchScreenBackground.png COPYONLY) +else() + configure_file(${CMAKE_CURRENT_LIST_DIR}/LaunchScreenBackgroundLandscape.png ${CMAKE_CURRENT_LIST_DIR}/LaunchScreenBackground.png COPYONLY) +endif() set(UI_RESOURCES ${CMAKE_CURRENT_LIST_DIR}/LaunchScreenBackground.png diff --git a/native/templates/ios/LaunchScreenBackground.png b/native/templates/ios/LaunchScreenBackgroundLandscape.png similarity index 100% rename from native/templates/ios/LaunchScreenBackground.png rename to native/templates/ios/LaunchScreenBackgroundLandscape.png diff --git a/native/templates/ios/LaunchScreenBackgroundPortrait.png b/native/templates/ios/LaunchScreenBackgroundPortrait.png new file mode 100644 index 0000000000..f1e503dfc4 Binary files /dev/null and b/native/templates/ios/LaunchScreenBackgroundPortrait.png differ