Add pyinstaller spec plus courtbouillon favico
Hello,
i was using WeasyPrint heavily in the last months and want to give something back, so here is a PR adding a pyinstaller spec file and (maybe too intrusively) a favicon from your courtbouillon.org website. When the PR in pyinstaller/pyinstaller-hooks-contrib#410 gets merged one could build a simple standalone weasyprint.exe with all the gtk+ dlls + fontconfig packaged into the exe. As mentioned in pyinstaller-hooks-contrib PR, i have no clue how to find the desired files on various linux distributions.
I hope this could help people having trouble with packaging like in #802 . And just to make clear, on the windows machine where the exe is build, one needs to have the gtk+ Runtime like described in your documentation
As i am no python developer i am not sure if the exe could be packaged in a platform egg for windows
just for Dokumentation, the spec file is pretty standard and generated with pyi-makespec.exe --onefile weasyprint.spec the only addition is the recipe from pyinstaller Wiki and the favico
Hi @seppovic,
Thanks a lot for this pull request, and sorry for the delay.
We’ve been testing different solutions to improve WeasyPrint’s installation on Windows, and using pyinstaller is definitely a solution we could be interested in. We’ll take more time to decide what we really want to do.
Hey @liZe this is no problem, feel free to take or drop it if it's not what you need.
Thank you anyways for the effort on weasyprint library. cheers
Hi!
Thanks a lot for your proposal!
We finally took some time to take care of this topic, and we’ve finally managed to open the exe branch, with this GitHub Actions script.
You can test the generated executables available on this page. Feedback is welcome!!