Open morevnaproject opened 6 years ago
Not to myself: when fixed make sure to drop a note here - https://github.com/morevnaproject/opentoonz/issues/2#issuecomment-361033643
We probably should use a simpler way to build Appimages - https://github.com/AppImage/AppImageKit/wiki/Bundling-Python-apps
This may not help, or even be relevant, but i came across this when trying to build it.
Stackoverflow -> "The solution I used was to use PyInstaller as an alternative because Py2Exe stopped development at python 3.4 and will not work with newer versions." https://stackoverflow.com/questions/41578808/indexerror-tuple-index-out-of-range-when-using-py2exe
I tried that advice and failed, but you may have a better experience with it. it did build an executable, but it did not execute. it was not a priority at that time, so i did not try to troubleshoot. Oh, and Please, for the sake of sanity, avoid the Docker route
I was able to create a working executable with PyInstaller. If you use the .spec file then it should also work for you. In my newest commit I changed a hardcoded path in the spec file, seems to work like this: https://github.com/steveway/papagayo-ng/commit/c1193f72f7b2c7be441ef44feccb6cdfb070b14c
This also creates a running executable in OSX Catalina, but I don't have sound in my Test VM and it's really slow, so I can't test much. And on a current Ubuntu this also builds a working executable, these are quite big but there is not much we can do about this.
Very cool. Thank you
Cool! Thank you!!!
So for Linux we now have a working script to create Appimage files and for Windows and technically OSX (not tested since last time) we can build binaries with PyInstaller using first the prepare_appimage_build_dir.py and then running the papagayo-ng.spec file in that using PyInstaller. It should be possible to update the Build System to use this. I could also create a Python script which will try to build binaries using these steps for the different systems. It could then have a command line parameter to choose the system, Linux Appimage, Windows or OSX. (For OSX we need a machine running that system as far as I know.)
It turns out that the latest changes in our build system (https://github.com/morevnaproject/morevna-builds) break the possibility to build Papagayo-NG packages. Needs to be resolved.