![]() ![]() … and *fingers crossed* out pops /tmp/MyProject.exeįeel free to have a play, fork the code, let me know what you think. Then type: python -m PyInstaller -name touchtracer examples- path demo touchtracer main. For example create a TouchApp folder and change to that directory with e.g. Create a folder into which the packaged app will be created. package.sh /path/to/my/main.py MyProject Open your command line shell and ensure that python is on the path (i.e. On the first run it’ll give you instructions on setting up your dedicated wine environment, but you won’t need to do this again. Visit the project on GitHub or clone the repo and get involved. Today I knocked up some scripts to help create and manage a dedicated Wine “build” environment and run Pyinstaller inside Wine to create a “frozen” standalone Windows executable file from your Python source. ![]() Since Pyinstaller-2.0 came out a while back I felt it was only right to revisit and see if I could make a more robust setup. I’ve used Pyinstaller v1.5 in the past quite a bit with some success but doing so in Wine on Linux has always been a bit flaky. If, like me, you develop in Linux, it’s a positive migraine. If you’ve ever had to deploy Python on Windows you’ll know it’s a headache. Paul Fawkesley Paul Fawkesley February 2013 Packaging Python for Windows with Pyinstaller and Wine ![]()
0 Comments
Leave a Reply. |