~exprez135/mailflow

fa16b3d85ed34a88f570de3d785a69dafc410c9f — Chris Webb 1 year, 2 months ago 52c60dc
Fix installer to work on macOS 10.15 and later

Mail.app moved from /Applications to /System/Applications in macOS 10.15
Catalina. Check both locations when reading Mail.app version and
compatibility UUIDs.

Fix contributed by Ethan Jackwitz <ethanjackwitz@gmail.com>
1 files changed, 4 insertions(+), 1 deletions(-)

M install.py
M install.py => install.py +4 -1
@@ 13,7 13,10 @@ def copystat(src, dst):
shutil.copystat = copystat

install_path = os.environ["HOME"] + '/Library/Mail/Bundles'
mail_path = '/Applications/Mail.app/Contents/Info'
if os.path.exists('/System/Applications/Mail.app'):
    mail_path = '/System/Applications/Mail.app/Contents/Info'
else:
    mail_path = '/Applications/Mail.app/Contents/Info'

command = 'defaults read %s CFBundleShortVersionString' % mail_path
if tuple(map(int, os.popen(command).read().strip().split('.'))) < (10, 0):