Skip to content

Commit 912756a

Browse files
committed
Refreshed tutorials
1 parent e324477 commit 912756a

79 files changed

Lines changed: 589 additions & 323 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎src/CMakeLists.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ elseif(APPLE)
395395
add_custom_target(codesign ALL
396396
COMMAND /bin/echo "Signing with: ${CODESIGN_ID}"
397397
COMMAND /bin/chmod -R u+w "${APP_DIR_NEW}"
398+
# Files copied from Finder or taken as screenshots carry extended
399+
# attributes (e.g. com.apple.FinderInfo) that codesign rejects as
400+
# "detritus"; strip them from the whole bundle before signing.
401+
COMMAND /usr/bin/xattr -cr "${APP_DIR_NEW}"
398402
COMMAND /usr/bin/codesign -vvv --deep --strict --force --options runtime --timestamp --sign "${CODESIGN_ID}" "${APP_DIR_NEW}"
399403
DEPENDS gen-dsstore
400404
COMMENT "Codesign"
@@ -694,6 +698,8 @@ if(RANGE_STORE_BUILD AND APPLE)
694698
# Deliberately not part of ALL: signing needs the store certificates,
695699
# which a plain developer build does not have.
696700
add_custom_target(mac-app-store
701+
# See the 'codesign' target: extended attributes break signing.
702+
COMMAND /usr/bin/xattr -cr "${APP_DIR_NEW}"
697703
COMMAND ${CMAKE_SOURCE_DIR}/range-build-tools/mac_app_store.sh ${_mac_store_args}
698704
DEPENDS gen-dsstore
699705
COMMENT "Signing the bundle for the Apple App Store"
328 KB
297 KB
4.47 KB
310 KB
28.1 KB
39.9 KB
289 KB
28.2 KB
-55 Bytes

0 commit comments

Comments
 (0)