From 590d297f6e007c120b1546087b9ffc5881f92e9c Mon Sep 17 00:00:00 2001 From: sun <1184550842@qq.com> Date: Fri, 30 Jul 2021 14:53:26 +0800 Subject: [PATCH] [Mac] Improve build mac on local script --- scripts/build/build-mac-local.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build/build-mac-local.py b/scripts/build/build-mac-local.py index c965c964..f039bdb4 100755 --- a/scripts/build/build-mac-local.py +++ b/scripts/build/build-mac-local.py @@ -622,7 +622,7 @@ def gen_dmg(): # Rename the .app dir to 'Seafile Client.app', and create the shortcut # to '/Applications' so the user can drag into it when opening the DMG. - brand = conf.get('CONF_BRAND') + brand = conf.get('CONF_BRAND', '') if brand: final_app = '{}.app'.format(brand) else: @@ -767,7 +767,7 @@ def do_sign(path, extra_args=None, preserve_entitlemenets=True): error('failed to sign {}'.format(path)) def copy_dmg(): - brand = 'seafile-client' + brand = conf[CONF_BRAND] or 'seafile-client' branded_dmg = '{}-{}.dmg'.format(brand, conf[CONF_VERSION]) src_dmg = os.path.join(BUILDDIR, 'app-{}.dmg'.format(conf[CONF_VERSION])) dst_dmg = os.path.join(BUILDDIR, branded_dmg)