Replies: 1 comment
-
You have a few options here probably. 1) Use a resource directory, in which you manually add the Python interpreter you want to use. 2) Use something like You need to have a I've created an WIP example pull request for you to view that shows what I'm talking about with |
Beta Was this translation helpful? Give feedback.
-
Hi Tauri developers, I am working on integrating pytauri with tauri-cli (WSH032/pytauri#2). To achieve this, I need to embed the Python interpreter into the executable, which requires the executable to link with the Python dynamic library. Therefore, I need to bundle and distribute a portable Python.
Here are the Python dependencies I bundled and their file layouts:
Windows:
Linux:
Apple: Layout is similar to Linux
For Windows, it's easy. Just place the executable
pytauri-demo.exe
in the root directory, like this:It seems that I can use bundleresources to achieve this?
But for Unix, I need to place the executable in
/bin
and set the dynamic library search path viarpath=$ORIGIN/../lib
:I don't know how to configure tauri-cli to achieve this layout. Do you have any suggestions?
Or is there a better way than
rpath
? My Unix experience is very limited, and I know nothing about Unix packaging (rpm, appimage, deb).It seems that AppImage can bundle dependencies? Can we use it to bundle the portable Python I mentioned?
Beta Was this translation helpful? Give feedback.
All reactions