From cd26d79ca11d3e8cd86a3f30aefa8b1c3bc6ed7a Mon Sep 17 00:00:00 2001 From: Moritz Kassner Date: Fri, 13 Nov 2015 11:11:31 +0100 Subject: [PATCH] codesign mac bundles --- deploy_capture/finalize_bundle.py | 5 +++++ deploy_player/finalize_bundle.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/deploy_capture/finalize_bundle.py b/deploy_capture/finalize_bundle.py index a0572d7e05..36ef066eec 100644 --- a/deploy_capture/finalize_bundle.py +++ b/deploy_capture/finalize_bundle.py @@ -24,6 +24,11 @@ bundle_name = 'Pupil Capture %s MacOS'%dpkg_deb_version() bundle_dmg_name = 'Install Pupil Capture' src_dir = 'dist' + bundle_app_dir = os.path.join(src_dir,'Pupil Capture.app/' ) + print "Codesigning now" + call("codesign -s 'Developer ID Application: Pupil Labs UG (haftungsbeschrankt) (R55K9ESN6B)' --deep '%s'"%bundle_app_dir,shell=True) + if call("spctl --assess --type execute '%s'"%bundle_app_dir,shell=True) != 0: + raise Exception("Codesinging failed") call("ln -s /Applications/ %s/Applications"%src_dir,shell=True) call("hdiutil create -volname '%s' -srcfolder %s -format UDZO '%s.dmg'"%(bundle_dmg_name,src_dir,bundle_name),shell=True) diff --git a/deploy_player/finalize_bundle.py b/deploy_player/finalize_bundle.py index 6050cd84bb..75c6a2ea14 100644 --- a/deploy_player/finalize_bundle.py +++ b/deploy_player/finalize_bundle.py @@ -60,6 +60,11 @@ bundle_name = 'Pupil Player %s MacOS'%dpkg_deb_version() bundle_dmg_name = 'Install Pupil Player' src_dir = 'dist' + bundle_app_dir = os.path.join(src_dir,'Pupil Player.app/' ) + print "Codesigning now" + call("codesign -s 'Developer ID Application: Pupil Labs UG (haftungsbeschrankt) (R55K9ESN6B)' --deep '%s'"%bundle_app_dir,shell=True) + if call("spctl --assess --type execute '%s'"%bundle_app_dir,shell=True) != 0: + raise Exception("Codesinging failed") call("ln -s /Applications/ %s/Applications"%src_dir,shell=True) call("hdiutil create -volname '%s' -srcfolder %s -format UDZO '%s.dmg'"%(bundle_dmg_name,src_dir,bundle_name),shell=True)