Copyright (C) 2012-2016 Pupil Labs Distributed under the terms of the GNU Lesser General Public License (LGPL v3.0). License details are in the file license.txt, distributed as part of this software. ----------------------------------------------------------------------------------~(*) ''' import platform import sys, os from version import write_version_file,dpkg_deb_version import shutil from subprocess import call if platform.system() == 'Darwin': print "starting version stript:" write_version_file('dist/Pupil Capture.app/Contents/MacOS') print "created version file in dist folder" shutil.rmtree('dist/Pupil Capture') print 'removed the non-app dist bundle' bundle_name = 'pupil_capture_mac_os_x64_v%s'%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" if call("codesign --force --verify --verbose -s 'Developer ID Application: Pupil Labs UG (haftungsbeschrankt) (R55K9ESN6B)' --deep '%s'"%bundle_app_dir,shell=True) != 0: print Exception("Codesinging failed") # if call("spctl --assess --type execute '%s'"%bundle_app_dir,shell=True) != 0: # print Exception("Codesing verification failed") call("ln -s /Applications/ %s/Applications"%src_dir,shell=True)
Distributed under the terms of the GNU Lesser General Public License (LGPL v3.0). See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) ''' import platform import sys, os from version import write_version_file, dpkg_deb_version import shutil from subprocess import call if platform.system() == 'Darwin': print("starting version stript:") write_version_file('dist/Pupil Capture.app/Contents/MacOS') print("created version file in dist folder") shutil.rmtree('dist/Pupil Capture') print('removed the non-app dist bundle') bundle_name = 'pupil_capture_mac_os_x64_v%s' % 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") if call("codesign --force --verify --verbose -s 'Developer ID Application: Pupil Labs UG (haftungsbeschrankt) (R55K9ESN6B)' --deep '%s'" % bundle_app_dir, shell=True) != 0: print(Exception("Codesinging failed")) # if call("spctl --assess --type execute '%s'"%bundle_app_dir,shell=True) != 0:
<array> <string>****</string> </array> <key>CFBundleTypeRole</key> <string>Viewer</string> </dict> </array> ''' split_str = """ </dict> </plist>""" if platform.system() == 'Darwin': print( "starting version stript:") write_version_file('dist/Pupil Player.app/Contents/MacOS') print( "created version file in app dir") shutil.rmtree('dist/Pupil Player') print( 'removed the non-app dist bundle') print( "hack injecting file type info in to info.plist") with open("dist/Pupil Player.app/Contents/Info.plist", "r") as f: txt = f.read() # read everything in the file txt = txt.replace(split_str,mac_plist_document_type_str + split_str) with open("dist/Pupil Player.app/Contents/Info.plist", "w") as f: f.write(txt) bundle_name = 'pupil_player_mac_os_x64_v%s'%pupil_version() bundle_dmg_name = 'Install Pupil Player' src_dir = 'dist'
<array> <string>****</string> </array> <key>CFBundleTypeRole</key> <string>Viewer</string> </dict> </array> ''' split_str = """ </dict> </plist>""" if platform.system() == 'Darwin': print "starting version stript:" write_version_file('dist/Pupil Player.app/Contents/MacOS') print "created version file in app dir" shutil.rmtree('dist/Pupil Player') print 'removed the non-app dist bundle' print "hack injecting file type info in to info.plist" with open("dist/Pupil Player.app/Contents/Info.plist", "r") as f: txt = f.read() # read everything in the file txt = txt.replace(split_str,mac_plist_document_type_str + split_str) with open("dist/Pupil Player.app/Contents/Info.plist", "w") as f: f.write(txt) bundle_name = 'Pupil Player %s MacOS'%dpkg_deb_version() bundle_dmg_name = 'Install Pupil Player' src_dir = 'dist'
Distributed under the terms of the GNU Lesser General Public License (LGPL v3.0). See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ import platform import sys, os from version import write_version_file, get_tag_commit, pupil_version import shutil from subprocess import call if platform.system() == "Darwin": print("starting version stript:") write_version_file("dist/Pupil Service.app/Contents/MacOS") print("created version file in dist folder") shutil.rmtree("dist/Pupil Service") print("removed the non-app dist bundle") bundle_name = "pupil_service_mac_os_x64_%s" % get_tag_commit() bundle_dmg_name = "Install Pupil Service" src_dir = "dist" bundle_app_dir = os.path.join(src_dir, "Pupil Service.app/") print("Codesigning now") if ( call( "codesign --force --verify --verbose -s 'Developer ID Application: Pupil Labs UG (haftungsbeschrankt) (R55K9ESN6B)' --deep '%s'" % bundle_app_dir, shell=True,
Distributed under the terms of the GNU Lesser General Public License (LGPL v3.0). See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ import platform import sys, os from version import write_version_file, dpkg_deb_version import shutil from subprocess import call if platform.system() == "Darwin": print("starting version stript:") write_version_file("dist/Pupil Capture.app/Contents/MacOS") print("created version file in dist folder") shutil.rmtree("dist/Pupil Capture") print("removed the non-app dist bundle") bundle_name = "pupil_capture_mac_os_x64_v%s" % 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") if ( call( "codesign --force --verify --verbose -s 'Developer ID Application: Pupil Labs UG (haftungsbeschrankt) (R55K9ESN6B)' --deep '%s'" % bundle_app_dir, shell=True,
Distributed under the terms of the GNU Lesser General Public License (LGPL v3.0). See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) """ import platform import sys, os from version import write_version_file, get_tag_commit, pupil_version import shutil from subprocess import call if platform.system() == "Darwin": print("starting version stript:") write_version_file("dist/Pupil Capture.app/Contents/MacOS") print("created version file in dist folder") shutil.rmtree("dist/Pupil Capture") print("removed the non-app dist bundle") bundle_name = "pupil_capture_mac_os_x64_%s" % get_tag_commit() bundle_dmg_name = "Install Pupil Capture" src_dir = "dist" bundle_app_dir = os.path.join(src_dir, "Pupil Capture.app/") print("Codesigning now") if ( call( "codesign --force --verify --verbose -s 'Developer ID Application: Pupil Labs UG (haftungsbeschrankt) (R55K9ESN6B)' --deep '%s'" % bundle_app_dir, shell=True,
Copyright (C) 2012-2016 Pupil Labs Distributed under the terms of the GNU Lesser General Public License (LGPL v3.0). License details are in the file license.txt, distributed as part of this software. ----------------------------------------------------------------------------------~(*) """ import platform import sys, os from version import write_version_file, dpkg_deb_version import shutil from subprocess import call if platform.system() == "Darwin": print "starting version stript:" write_version_file("dist/Pupil Service.app/Contents/MacOS") print "created version file in dist folder" shutil.rmtree("dist/Pupil Service") print "removed the non-app dist bundle" bundle_name = "pupil_service_mac_os_x64_v%s" % dpkg_deb_version() bundle_dmg_name = "Install Pupil Service" src_dir = "dist" bundle_app_dir = os.path.join(src_dir, "Pupil Service.app/") print "Codesigning now" if ( call( "codesign --force --verify --verbose -s 'Developer ID Application: Pupil Labs UG (haftungsbeschrankt) (R55K9ESN6B)' --deep '%s'" % bundle_app_dir, shell=True,
<array> <string>****</string> </array> <key>CFBundleTypeRole</key> <string>Viewer</string> </dict> </array> """ split_str = """ </dict> </plist>""" if platform.system() == "Darwin": print("starting version stript:") write_version_file("dist/Pupil Player.app/Contents/MacOS") print("created version file in app dir") shutil.rmtree("dist/Pupil Player") print("removed the non-app dist bundle") print("hack injecting file type info in to info.plist") with open("dist/Pupil Player.app/Contents/Info.plist", "r") as f: txt = f.read() # read everything in the file txt = txt.replace(split_str, mac_plist_document_type_str + split_str) with open("dist/Pupil Player.app/Contents/Info.plist", "w") as f: f.write(txt) bundle_name = "pupil_player_mac_os_x64_%s" % get_tag_commit() bundle_dmg_name = "Install Pupil Player" src_dir = "dist"
Distributed under the terms of the GNU Lesser General Public License (LGPL v3.0). See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) ''' import platform import sys, os from version import write_version_file,get_tag_commit,pupil_version import shutil from subprocess import call if platform.system() == 'Darwin': print( "starting version stript:") write_version_file('dist/Pupil Service.app/Contents/MacOS') print( "created version file in dist folder") shutil.rmtree('dist/Pupil Service') print( 'removed the non-app dist bundle') bundle_name = 'pupil_service_mac_os_x64_%s'%get_tag_commit() bundle_dmg_name = 'Install Pupil Service' src_dir = 'dist' bundle_app_dir = os.path.join(src_dir,'Pupil Service.app/' ) print( "Codesigning now") if call("codesign --force --verify --verbose -s 'Developer ID Application: Pupil Labs UG (haftungsbeschrankt) (R55K9ESN6B)' --deep '%s'"%bundle_app_dir,shell=True) != 0: print( Exception("Codesinging failed")) # if call("spctl --assess --type execute '%s'"%bundle_app_dir,shell=True) != 0: # print Exception("Codesing verification failed") call("ln -s /Applications/ %s/Applications"%src_dir,shell=True)
Distributed under the terms of the GNU Lesser General Public License (LGPL v3.0). See COPYING and COPYING.LESSER for license details. ---------------------------------------------------------------------------~(*) ''' import platform import sys, os from version import write_version_file,dpkg_deb_version import shutil from subprocess import call if platform.system() == 'Darwin': print( "starting version stript:") write_version_file('dist/Pupil Service.app/Contents/MacOS') print( "created version file in dist folder") shutil.rmtree('dist/Pupil Service') print( 'removed the non-app dist bundle') bundle_name = 'pupil_service_mac_os_x64_v%s'%dpkg_deb_version() bundle_dmg_name = 'Install Pupil Service' src_dir = 'dist' bundle_app_dir = os.path.join(src_dir,'Pupil Service.app/' ) print( "Codesigning now") if call("codesign --force --verify --verbose -s 'Developer ID Application: Pupil Labs UG (haftungsbeschrankt) (R55K9ESN6B)' --deep '%s'"%bundle_app_dir,shell=True) != 0: print( Exception("Codesinging failed")) # if call("spctl --assess --type execute '%s'"%bundle_app_dir,shell=True) != 0: # print Exception("Codesing verification failed") call("ln -s /Applications/ %s/Applications"%src_dir,shell=True)