if opsys == 'Darwin':
app = BUNDLE(
coll,
name='RAW.app',
icon=raw_icon,
bundle_identifier='edu.bioxtas.raw',
info_plist=
{
'CFBundleVersion' : RAWGlobals.version,
'CFBundleShortVersionString' : RAWGlobals.version,
'LSBackgroundOnly' : '0',
'NSHighResolutionCapable' : True,
'NSPrincipleClass' : 'NSApplication',
'CFBundleDevelopmentRegion' : 'en_US',
'LSHasLocalizedDisplayName' : False,
'CFBundleDocumentTypes' : [
{
'CFBundleTypeName' : 'SAXS data file',
'LSHandlerRank' : 'Default',
'CFBundleTypeExtensions': ['out', 'fit', 'fir', 'rad',
'int', 'dat', 'csv', 'sub', 'txt'],
'CFBundleTypeRole' : 'Viewer'
},
{
'CFBundleTypeName' : 'Image file',
'LSHandlerRank' : 'Default',
'CFBundleTypeExtensions': ['tif', 'tiff', 'nxs', 'edf',
'ccdraw', 'img', 'imx_0', 'dkx_0', 'dxk_1', 'png',
'mpa', 'mar1200', 'mar2400', 'mar3200', 'mar3600',
'sfrm', 'dm3', 'xml', 'cbf', 'kccd', 'msk',
'spr', 'h5', 'mccd', 'mar3450', 'npy', 'No'],
'CFBundleTypeRole' : 'Viewer'
},
{
'CFBundleTypeName' : 'LC data file',
'LSHandlerRank' : 'Default',
'CFBundleTypeExtensions': ['sec',],
'CFBundleTypeRole' : 'Viewer'
},
],
},
)
If it's already installed and you overwrite the .app, you might have to force MacOS to update the changes, this set of commands should do it: