-
Notifications
You must be signed in to change notification settings - Fork 10
Description
This is just an issue to collect ideas on how to deploy a release binary.
When using RustPython (default), there is no need to perform any extra step for the release build. RustPython is linked statically and therefore also runs fine on Android and iOS.
PyO3 may require that you also need the python dll on the target system where the installer is executed later. There is a documentation for this here:
https://pyo3.rs/main/building-and-distribution.html#embedding-python-in-rust
To check which libraries are linked dynamically and need to be available on the target system, you can following command on Macos
otool -L tauri_app # on linux you would run "ldd tauri_app"This output may then contain following line:
/opt/homebrew/opt/[email protected]/Frameworks/Python.framework/Versions/3.13/Python (compatibility version 3.13.0, current version 3.13.0)
This is showing the location and version of the python dynamic library. On the next run, it will expect the library on the same location.
In that case, you may be required to install python 3.13 with homebrew on the target system.
On windows, the dll may also be in the same folder as the executable.