flask to exe
use package pyinstaller with flaskwebgui
first, we have a normal flask project with venv.
1 | . |
in run.py
1 | from app import app |
then when you use python run.py you run the flask website in chrome app mode.
if you want an .exe file, use this command
pyinstaller -w -F –add-data “./app/templates;./app/templates” run.py