Sha256: 1fd56a2f0820aafe4e3b9e8026a7f1a8788a603c13948db6a084a25099037cad

Contents?: true

Size: 1.62 KB

Versions: 270

Compression:

Stored size: 1.62 KB

Contents

From 13f2c76fd11b0d861ddf205d4d6ccc0c45a0d4b2 Mon Sep 17 00:00:00 2001
From: Fabio Milano
Date: Thu, 13 Aug 2015 15:02:41 +0200
Subject: [PATCH] Fixed codesign_args

Code signatures made in Mavericks and later do not support altering which files are sealed by a code signature.
The --resource-rules option to codesign isn't supported anymore

See https://developer.apple.com/library/mac/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG206

---
 PackageApplication4Gym | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/PackageApplication4Gym b/PackageApplication4Gym
index fc4d7de..b97431f 100755
--- a/PackageApplication4Gym
+++ b/PackageApplication4Gym
@@ -152,9 +152,15 @@ if ( defined $opt{sign} ) {
         }
     }
 
-    my @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements,resource-rules",
+    my @codesign_args;
+    if (-e '$destApp/ResourceRules.plist') {  # If ResourceRules.plist exists, include it in codesign arguments, for backwards compatability
+        @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements,resource-rules",
                          "--sign", $opt{sign},
                          "--resource-rules=$destApp/ResourceRules.plist");
+    } else { # If ResourceRules.plist isn't found, don't include it in the codesign arguments
+        @codesign_args = ("/usr/bin/codesign", "--force", "--preserve-metadata=identifier,entitlements",
+                         "--sign", $opt{sign});
+    }
 
     if ( -e $entitlements_plist ) {
         push(@codesign_args, '--entitlements');
-- 
2.2.1

Version data entries

270 entries across 270 versions & 2 rubygems

Version Path
fastlane-2.42.0 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.42.0.beta.20170628010031 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.42.0.beta.20170627010007 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.42.0.beta.20170626010017 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.42.0.beta.20170625010032 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.42.0.beta.20170624010047 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.41.0 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.41.0.beta.20170623010027 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.40.0 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.40.0.beta.20170622010014 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.40.0.beta.20170621010038 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.40.0.beta.20170620010029 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.39.2 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.40.0.beta.20170619010029 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.40.0.beta.20170618010039 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.40.0.beta.20170617010037 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.39.1 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.40.0.beta.20170616010015 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.39.0 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff
fastlane-2.39.0.beta.20170615010031 gym/lib/assets/package_application_patches/0001_codesign_args_patch.diff