File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 11block_cipher = None
2-
32import os
4- from PyInstaller .utils .hooks import collect_data_files
3+ from PyInstaller .utils .hooks import collect_data_files , copy_metadata
54
6- # Collect data files from desktop-notifier
75desktop_notifier_data = collect_data_files ('desktop_notifier' )
86
9- added_files = desktop_notifier_data
7+ aw_nextblock_metadata = copy_metadata ('aw-nextblock' )
8+
9+ added_files = desktop_notifier_data + aw_nextblock_metadata
1010
1111cli_a = Analysis (
1212 ['src/aw_nextblock/__main__.py' ],
@@ -45,5 +45,4 @@ cli_exe = EXE(
4545 target_arch = None ,
4646 codesign_identity = None ,
4747 entitlements_file = None ,
48- )
49-
48+ )
Original file line number Diff line number Diff line change 11__version__ = "0.1.0"
2- __app_name__ = "aw-nextblock"
32
4- from .cli import cli
3+ try :
4+ from importlib .metadata import version
5+ __version__ = version ("aw-nextblock" )
6+ except Exception :
7+ pass
58
9+ __app_name__ = "aw-nextblock"
10+ from .cli import cli
611__all__ = ["cli" ]
You can’t perform that action at this time.
0 commit comments