Add app icon (#49)

This commit is contained in:
Chidi Williams 2022-10-11 08:49:42 +01:00 committed by GitHub
commit 9ab09e89b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 6 deletions

View file

@ -1,4 +1,6 @@
# -*- mode: python ; coding: utf-8 -*-
import os
from PyInstaller.utils.hooks import collect_data_files, copy_metadata
datas = []
@ -38,6 +40,7 @@ exe = EXE(
pyz,
a.scripts,
[],
icon='./assets/buzz.ico',
exclude_binaries=True,
name='Buzz',
debug=True,
@ -64,11 +67,10 @@ coll = COLLECT(
app = BUNDLE(
coll,
name='Buzz.app',
icon=None,
bundle_identifier=None,
version='0.0.1',
icon='./assets/buzz.icns',
bundle_identifier='com.chidiwilliams.buzz',
version=os.getenv('BUZZ_VERSION', '0.0.1'),
info_plist={
'NSPrincipalClass': 'NSApplication',
'NSMicrophoneUsageDescription': 'Please provide microphone access to continue'
}
)

View file

@ -75,11 +75,11 @@ dmg_mac:
ditto -x -k "${mac_zip_path}" dist/dmg
create-dmg \
--volname "Buzz" \
--volicon "dist/Buzz.app/Contents/Resources/icon-windowed.icns" \
--volicon "./assets/buzz.icns" \
--window-pos 200 120 \
--window-size 600 300 \
--icon-size 100 \
--icon "dist/Buzz.app/Contents/Resources/icon-windowed.icns" 175 120 \
--icon "./assets/buzz.icns" 175 120 \
--hide-extension "Buzz.app" \
--app-drop-link 425 120 \
--codesign "$$BUZZ_CODESIGN_IDENTITY" \

BIN
assets/buzz.icns Normal file

Binary file not shown.

BIN
assets/buzz.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB