@brenno.almeida said:
Nice work @projectmoon looks like a solid project. Never thought that Greenline could be used as a base for anything, the way the app is structured is too "whatsapp-specifc" and with a lot of code shortcuts, a bit hacky to be honest.
I'm seeing that you're building some non python modules into the project, numpy as an example. How are you building that for arm64? Are you cross compiling, building in a arm64 worker, or something else? Thanks!
Thanks! The original reason I chose to use Greenline as the base was because Libervia is written in Python, Greenline is written in Python, Libervia acts as a daemon. All the pieces just kinda fit together. But then I wanted to make it confined, and then I a did a Rust, and now we have the current abomination!
As for building the Python part, there are two builds. There is the optional Nuitka (Python native compiler) backend build, which absolutely requires running on a native host for the architecture. This was an experiment to see if Libervia would run/start faster. It does not. At least, not enough to make it worth waiting for a 50 minute Python native compilation.
The regular backend, which is using Rust's PyO3, is just regular cross-compiled via clickable build. The only reason Nuitka requires a native build is because it simply does not do cross-compilation.