SYNERGY-656 Update macOS installer drive icons (#6879)
* SYNERGY-656 Update macOS installer drive icons * SYNERGY-656 Correct dmgbuild installation * Update ChangeLog
This commit is contained in:
parent
2217e8fe3c
commit
23855f5460
4 changed files with 3 additions and 14 deletions
|
|
@ -1,7 +1,6 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import biplist
|
||||
import os.path
|
||||
|
||||
# Use like this: dmgbuild -s settings.py "Test Volume" test.dmg
|
||||
|
|
@ -12,16 +11,6 @@ import os.path
|
|||
application = defines.get('app', 'Synergy.app')
|
||||
appname = os.path.basename(application)
|
||||
|
||||
def icon_from_app(app_path):
|
||||
plist_path = os.path.join(app_path, 'Contents', 'Info.plist')
|
||||
plist = biplist.readPlist(plist_path)
|
||||
icon_name = plist['CFBundleIconFile']
|
||||
icon_root,icon_ext = os.path.splitext(icon_name)
|
||||
if not icon_ext:
|
||||
icon_ext = '.icns'
|
||||
icon_name = icon_root + icon_ext
|
||||
return os.path.join(app_path, 'Contents', 'Resources', icon_name)
|
||||
|
||||
# .. Basics ....................................................................
|
||||
|
||||
# Volume format (see hdiutil create -help)
|
||||
|
|
@ -42,8 +31,7 @@ symlinks = { 'Applications': '/Applications' }
|
|||
# image, *or* you can define badge_icon, in which case the icon file you specify
|
||||
# will be used to badge the system's Removable Disk icon
|
||||
#
|
||||
#icon = '/path/to/icon.icns'
|
||||
badge_icon = icon_from_app(application)
|
||||
icon = os.path.join(application, 'Contents', 'Resources', 'Drive.icns')
|
||||
|
||||
# Where to put the icons
|
||||
icon_locations = {
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ steps:
|
|||
|
||||
- task: CmdLine@2
|
||||
inputs:
|
||||
script: 'pip install dmgbuild'
|
||||
script: 'python3 -m pip install dmgbuild'
|
||||
displayName: 'Installing dmgbuild'
|
||||
|
||||
- task: CmdLine@2
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ Bug fixes:
|
|||
- #6858 Application is blurry and unfocused on macOS
|
||||
- #6872 Check for dns_sd.h only when building GUI
|
||||
- #6874 The logo on Windows taskbar is incorrect.
|
||||
- #6879 Update macOS installer drive icons
|
||||
|
||||
Enhancements:
|
||||
- #6867 Create only 1 artefact for macOS
|
||||
|
|
|
|||
BIN
dist/macos/bundle/Synergy.app/Contents/Resources/Drive.icns
vendored
Normal file
BIN
dist/macos/bundle/Synergy.app/Contents/Resources/Drive.icns
vendored
Normal file
Binary file not shown.
Loading…
Reference in a new issue