简体   繁体   中英

How to create a Mac APP from existing flask application

I am using py2app to create a self contained Mac app from existing Flask application. This is meant to be an installable backend of a web-app that runs locally in the MAC. The code is organised as follows:

 <project folder>

      usd_utility

           __init__.py

           usd_utility.py

when I do py2applet --make-setup usd_utility from project folder I get the error: TypeError: expected str, bytes or os.PathLike object, not list

what is the proper way to build the Mac APP?

If you are using a Mac use platypus If you have included all dependent assests, you will be able to run easily, it also support few other languages although I haven't tried. You wouldn't need a tutorial its pretty straight forward

I managed to get platypus work. Nice tool. I've just ensured that virtual environment in included in the bundled with no missing installed packages and activated the virtual environment in the script file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM