I have built a simple python app with Tkinker, which has a super small sqlite file with it. The app is here, https://github.com/yts61/bookstore_app.git
Having failed in pyinstaller many times, i am turing to py2app in the hope to make one standalone app file which i can share around. I googled and followed this youtube tutorial,
https://www.youtube.com/watch?v=u4ykDbciXa8, and again failed the mission. My setup.py file is like the one below,
from setuptools import setup
APP = ['frontend.py']
DATA_FILES = ['books.db','backend.py']
OPTIONS = {
'iconfile':'favicon.ico',
'argv_emulation': True,
'packages': ['certifi'],
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
In the terminal, i tried python setup.py py2app -A
, and clicked the frontend file in Content/MacOS/frontend
to test run the app as suggested by the tutorial, however, the app won't run, and my Mac flashed and reset itself.
Would anyone please help ? I have asked another question about building this standalone app with pyinstaller. What is the proper way to use pyinstaller on Mac?