Skip to content

Commit

Permalink
added bdist_mac options
Browse files Browse the repository at this point in the history
  • Loading branch information
samirg1 committed Sep 1, 2023
1 parent c9d591b commit c7ebfce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@

from cx_Freeze import Executable, setup # type: ignore

build_exe_options = {
build_exe = {
"excludes": ["pytest", "PyQt6", "PyQt5", "cv2", "numpy", "mypy", "test", "email", "pydoc_data", "multiprocessing", "rubicon"],
"packages": ["pyautogui", "pyperclip", "attrs", "pynput"],
"include_msvcr": True,
"include_files": ["autosmx.png"],
}

bdist_mac = {"iconfile": "autosmx.ico", "bundle_name": "AutoSMX"}

base = "Win32GUI" if sys.platform == "win32" else None

setup(
name="AutoSMX",
version="1.0",
version="1.0.0",
description="GUI Automater for SMX",
options={"build_exe": build_exe_options},
author="Samir Gupta",
options={"build_exe": build_exe, "bdist_mac": bdist_mac},
executables=[Executable("src/App.py", base=base, target_name="AutoSMX", icon="autosmx.ico")],
)

0 comments on commit c7ebfce

Please sign in to comment.