B4J Question [PyBridge] standalone B4J app how looks?

peacemaker

Expert
Licensed User
Longtime User
Hi, All

And how the installation of a B4J app using PyBridge will look like ? 5-6 GB folder including some Py set ?
 

Daestrum

Expert
Licensed User
Longtime User
I just compiled a non-ui PyBridge program and the build folder was 68MB. ( I do have python separate on my machine)

And a UI version came out at 96MB
 
Last edited:
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
So, the app installer must download and install Python...
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
No.

I've published an example: https://www.b4x.com/b4j/files/PyPDF_Example.exe
It is 49mb. Not much larger than a package without Python. And this example includes several Python libraries. It can be smaller.

Obviously if you use large Python libraries then the package will be larger. And not every library is really suitable for simple distribution.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Not much larger than a package without Python
But some runtime of the Py is needed or not for standalone app ?

Ahh, i see now that 65 MB of "WinPython" is included, clear now, thanks, Erel.
Totally 120 MB of the installed app.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Step 1: Work with a local Python:

1740549670787.png


No more special steps.

1740549706156.png



The local Python runtime is copied to the installer package.
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
BTW, after uninstallation - the app folder is not deleted, with big tree of the empty subfolders:
1740550147744.png
 
Upvote 0
Top