mirror of
https://github.com/haiwen/seafile.git
synced 2025-01-09 04:17:30 +08:00
[Mac] Improve build mac on local script
This commit is contained in:
parent
0fdc14d517
commit
590d297f6e
@ -622,7 +622,7 @@ def gen_dmg():
|
|||||||
|
|
||||||
# Rename the .app dir to 'Seafile Client.app', and create the shortcut
|
# 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.
|
# 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:
|
if brand:
|
||||||
final_app = '{}.app'.format(brand)
|
final_app = '{}.app'.format(brand)
|
||||||
else:
|
else:
|
||||||
@ -767,7 +767,7 @@ def do_sign(path, extra_args=None, preserve_entitlemenets=True):
|
|||||||
error('failed to sign {}'.format(path))
|
error('failed to sign {}'.format(path))
|
||||||
|
|
||||||
def copy_dmg():
|
def copy_dmg():
|
||||||
brand = 'seafile-client'
|
brand = conf[CONF_BRAND] or 'seafile-client'
|
||||||
branded_dmg = '{}-{}.dmg'.format(brand, conf[CONF_VERSION])
|
branded_dmg = '{}-{}.dmg'.format(brand, conf[CONF_VERSION])
|
||||||
src_dmg = os.path.join(BUILDDIR, 'app-{}.dmg'.format(conf[CONF_VERSION]))
|
src_dmg = os.path.join(BUILDDIR, 'app-{}.dmg'.format(conf[CONF_VERSION]))
|
||||||
dst_dmg = os.path.join(BUILDDIR, branded_dmg)
|
dst_dmg = os.path.join(BUILDDIR, branded_dmg)
|
||||||
|
Loading…
Reference in New Issue
Block a user