Rename variable logo_dir -> iconset_dir

This commit is contained in:
Luflosi 2020-03-20 23:49:57 +01:00
parent eddd45bbc3
commit 85fc0a59b1
No known key found for this signature in database
GPG Key ID: 4E41E29EDCC345D0

View File

@ -858,10 +858,10 @@ def macos_info_plist() -> bytes:
def create_macos_app_icon(where: str = 'Resources') -> None:
logo_dir = os.path.abspath(os.path.join('logo', appname + '.iconset'))
iconset_dir = os.path.abspath(os.path.join('logo', appname + '.iconset'))
subprocess.check_call([
'iconutil', '-c', 'icns', logo_dir, '-o',
os.path.join(where, os.path.basename(logo_dir).partition('.')[0] + '.icns')
'iconutil', '-c', 'icns', iconset_dir, '-o',
os.path.join(where, os.path.basename(iconset_dir).partition('.')[0] + '.icns')
])