Fix for mac

This commit is contained in:
BuildTools 2021-03-26 16:54:07 +01:00
parent 757da046a5
commit 3bfa9c4b6a

View file

@ -10,10 +10,9 @@ if sys.version_info < (3, 0, 0):
def is_64bit() -> bool: def is_64bit() -> bool:
return sys.maxsize > 2**32 return sys.maxsize > 2**32
#if sys.platform == "win32": base = None
base = "Win32GUI" if sys.platform == "win32":
#else: base = "Win32GUI"
# sys.exit("This script won't work on this platform </3")
includefiles = ["quirks", includefiles = ["quirks",
"smilies", "smilies",
@ -39,10 +38,7 @@ build_exe_options = {
bdist_mac_options = { bdist_mac_options = {
'iconfile': 'trayicon32.icns', 'iconfile': 'trayicon32.icns',
'bundle_name': "Pesterchum", 'bundle_name': "Pesterchum"
'plist': {
'NSHumanReadableCopyright': 'GPL v3',
}
} }
description = "Instant messaging client copying the look and feel of clients from Andrew Hussie's webcomic Homestuck." description = "Instant messaging client copying the look and feel of clients from Andrew Hussie's webcomic Homestuck."
@ -88,10 +84,6 @@ bdist_msi_options = {'data': msi_data,
'all_users': True, 'all_users': True,
'install_icon': "pesterchum.ico"} 'install_icon': "pesterchum.ico"}
#print("type(includefiles) = " + str(type(includefiles)))
#print("type(build_exe_options) = " + str(type(build_exe_options))
setup( setup(
name = "Pesterchum", name = "Pesterchum",
version = buildVersion, version = buildVersion,
@ -102,7 +94,5 @@ setup(
"bdist_mac": bdist_mac_options}, "bdist_mac": bdist_mac_options},
executables = [Executable("pesterchum.py", executables = [Executable("pesterchum.py",
base=base, base=base,
icon=icon#, icon=icon
#shortcut_name="Pesterchum",
#shortcut_dir="DesktopFolder"
)]) )])