Closed infinitel8p closed 1 year ago
Create a standalone executable for Mac using py2app:
Install py2app using the following command: pip install py2app
Create a script called setup.py
in the same directory as the script, with the following contents:
from setuptools import setup
setup(
app=["script.py"],
setup_requires=["py2app"],
)
Run the following command to create the executable: python setup.py py2app
This will create a folder called dist that contains the executable.