Skip to content

Commit a2f0079

Browse files
committed
Add iOS app icons
1 parent d7fb762 commit a2f0079

13 files changed

Lines changed: 52 additions & 0 deletions

UnleashedRecomp/CMakeLists.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,20 @@ elseif (CMAKE_SYSTEM_NAME STREQUAL "iOS")
318318
)
319319
string(REGEX REPLACE "^v" "" IOS_BUNDLE_VERSION "${IOS_BUNDLE_VERSION}")
320320

321+
set(UNLEASHED_RECOMP_IOS_ICON_FILES
322+
"${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon20x20@2x.png"
323+
"${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon20x20@3x.png"
324+
"${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon29x29@2x.png"
325+
"${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon29x29@3x.png"
326+
"${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon40x40@2x.png"
327+
"${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon40x40@3x.png"
328+
"${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon60x60@2x.png"
329+
"${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon60x60@3x.png"
330+
"${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon76x76.png"
331+
"${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon76x76@2x.png"
332+
"${CMAKE_CURRENT_SOURCE_DIR}/res/ios/icons/AppIcon83.5x83.5@2x.png"
333+
)
334+
321335
add_executable(UnleashedRecomp MACOSX_BUNDLE
322336
${UNLEASHED_RECOMP_CXX_SOURCES}
323337
)
@@ -332,6 +346,13 @@ elseif (CMAKE_SYSTEM_NAME STREQUAL "iOS")
332346
XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2"
333347
XCODE_ATTRIBUTE_ENABLE_BITCODE "NO"
334348
)
349+
foreach(UNLEASHED_RECOMP_IOS_ICON_FILE IN LISTS UNLEASHED_RECOMP_IOS_ICON_FILES)
350+
add_custom_command(TARGET UnleashedRecomp POST_BUILD
351+
COMMAND ${CMAKE_COMMAND} -E copy_if_different
352+
"${UNLEASHED_RECOMP_IOS_ICON_FILE}"
353+
"$<TARGET_BUNDLE_DIR:UnleashedRecomp>"
354+
)
355+
endforeach()
335356
elseif (APPLE)
336357
# Create version number for app bundle.
337358
CreateVersionString(

UnleashedRecomp/res/ios/Info.plist.in

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,37 @@
1212
<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
1414
<string>6.0</string>
15+
<key>CFBundleIcons</key>
16+
<dict>
17+
<key>CFBundlePrimaryIcon</key>
18+
<dict>
19+
<key>CFBundleIconFiles</key>
20+
<array>
21+
<string>AppIcon20x20</string>
22+
<string>AppIcon29x29</string>
23+
<string>AppIcon40x40</string>
24+
<string>AppIcon60x60</string>
25+
</array>
26+
<key>UIPrerenderedIcon</key>
27+
<true/>
28+
</dict>
29+
</dict>
30+
<key>CFBundleIcons~ipad</key>
31+
<dict>
32+
<key>CFBundlePrimaryIcon</key>
33+
<dict>
34+
<key>CFBundleIconFiles</key>
35+
<array>
36+
<string>AppIcon20x20</string>
37+
<string>AppIcon29x29</string>
38+
<string>AppIcon40x40</string>
39+
<string>AppIcon76x76</string>
40+
<string>AppIcon83.5x83.5</string>
41+
</array>
42+
<key>UIPrerenderedIcon</key>
43+
<true/>
44+
</dict>
45+
</dict>
1546
<key>CFBundleName</key>
1647
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
1748
<key>CFBundlePackageType</key>
6.21 KB
Loading
9.29 KB
Loading
9.09 KB
Loading
14.9 KB
Loading
13.3 KB
Loading
23.4 KB
Loading
23.4 KB
Loading
42.9 KB
Loading

0 commit comments

Comments
 (0)