File tree 1 file changed +10
-0
lines changed
lib/motion/project/template/osx
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,16 @@ def archive(config)
44
44
45
45
def codesign ( config , platform )
46
46
app_bundle = config . app_bundle_raw ( 'MacOSX' )
47
+ app_frameworks = File . join ( config . app_bundle ( platform ) , 'Frameworks' )
48
+ config . embedded_frameworks . each do |framework |
49
+ framework_path = File . join ( app_frameworks , File . basename ( framework ) )
50
+ if File . mtime ( config . project_file ) > File . mtime ( framework_path ) \
51
+ or !system ( "/usr/bin/codesign --verify \" #{ framework_path } \" >& /dev/null" )
52
+ App . info 'Codesign' , framework_path
53
+ sh "/usr/bin/codesign --force --sign \" #{ config . codesign_certificate } \" --preserve-metadata=\" identifier,entitlements\" \" #{ framework_path } \" "
54
+ end
55
+ end
56
+
47
57
entitlements = File . join ( config . versionized_build_dir ( platform ) , "Entitlements.plist" )
48
58
if File . mtime ( config . project_file ) > File . mtime ( app_bundle ) \
49
59
or !system ( "/usr/bin/codesign --verify \" #{ app_bundle } \" >& /dev/null" )
You can’t perform that action at this time.
0 commit comments