From c3030a66213d3d7fc32c6fa969765aef17067880 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sat, 30 Oct 2021 11:02:04 -0700 Subject: [PATCH] Revert "Set CODE_SIGN_INJECT_BASE_ENTITLEMENTS=NO for release (#1973)" (#1994) For development we should include task-get-allow entitlements. For distribution if people use custom workflows, they need to properly re-sign the app without preserving this entitlement --- Configurations/ConfigCommonRelease.xcconfig | 1 - Configurations/make-release-package.sh | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Configurations/ConfigCommonRelease.xcconfig b/Configurations/ConfigCommonRelease.xcconfig index 4582b96e..7f5eceab 100644 --- a/Configurations/ConfigCommonRelease.xcconfig +++ b/Configurations/ConfigCommonRelease.xcconfig @@ -16,4 +16,3 @@ DEAD_CODE_STRIPPING = YES GCC_TREAT_WARNINGS_AS_ERRORS = NO GCC_WARN_UNINITIALIZED_AUTOS = YES COPY_PHASE_STRIP = NO -CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO diff --git a/Configurations/make-release-package.sh b/Configurations/make-release-package.sh index a3677d03..9930392e 100755 --- a/Configurations/make-release-package.sh +++ b/Configurations/make-release-package.sh @@ -43,6 +43,14 @@ if [ "$ACTION" = "" ] ; then cp -R "$CONFIGURATION_BUILD_DIR/sparkle.app" "$CONFIGURATION_BUILD_DIR/staging-spm" cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework" "$CONFIGURATION_BUILD_DIR/staging" cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.xcframework" "$CONFIGURATION_BUILD_DIR/staging-spm" + + if [[ "$SPARKLE_EMBED_DOWNLOADER_XPC_SERVICE" -eq 1 ]]; then + mkdir -p "$CONFIGURATION_BUILD_DIR/staging/Entitlements" + mkdir -p "$CONFIGURATION_BUILD_DIR/staging-spm/Entitlements" + + cp -R "$SRCROOT/Downloader/org.sparkle-project.Downloader.entitlements" "$CONFIGURATION_BUILD_DIR/staging/Entitlements" + cp -R "$SRCROOT/Downloader/org.sparkle-project.Downloader.entitlements" "$CONFIGURATION_BUILD_DIR/staging-spm/Entitlements" + fi mkdir -p "$CONFIGURATION_BUILD_DIR/staging/Symbols"