diff --git a/setup.py b/setup.py index 8e8aae1..10112c7 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,7 @@ 'your social media accounts only show your posts ' \ 'from recent history, not from "that phase" 5 years ago.' + def find_data_file(filename): if getattr(sys, 'frozen', False): datadir = os.path.dirname(sys.executable) @@ -15,6 +16,7 @@ def find_data_file(filename): datadir = os.path.dirname(__file__) return os.path.join(datadir, filename) + base = None if sys.platform == 'win32': base = 'Win32GUI' @@ -23,9 +25,11 @@ def find_data_file(filename): build_exe_options = {'packages': ['os', 'idna', 'multiprocessing', 'dbm']} bdist_mac_options = {'iconfile': find_data_file('icon.icns')} -executables = [Executable('SocialAmnesia.py', base=base, icon=find_data_file('icon.ico'))] +executables = [Executable('SocialAmnesia.py', base=base, + icon=find_data_file('icon.ico'))] setup(name=app_name, + version='1.0.0', description=app_description, options={'build_exe': build_exe_options, 'bdist_mac': bdist_mac_options}, executables=executables)