Android Tutorial [B4X]Automatically package b4xlib libraries

When I was writing the b4xlib library, I encountered complicated steps, and I needed to decompress and compress the b4xlib file (zip format) frequently.

So I wrote this tool to automatically package b4xlib libraries. At the same time, a project template was made.

Now I share it and give back to the community.
1741872962115.png

1741872800453.png

Usage:
1.Put Pack2b4xlib.bat in the project directory, that is, B4A, B4J and B4i directories at the same level
2.Then add the following code to the IDE.
If manifest.txt doesn't exist, you will be prompted whether to create it. The IDE shortcut code is as follows.
ide shortcut:
'Create b4xlib: ide://run?file=%PROJECT%\..\Pack2b4xlib.bat&Args=%ADDITIONAL%&Args=%PROJECT_NAME%.b4xlib
'Edit manifest.txt: ide://run?file=%WINDIR%\System32\notepad.exe&Args=%PROJECT%\..\manifest.txt
I have already made a template based on Erel's default B4X template, downloaded it and put it into the extension library, so I can create a new one when I need to create a new library.
1741873289367.png

Note: After repackaging, it is best to re-check the items that have referenced the b4xlib library in the library list to prevent the items from not loading the updated library.
 

Attachments

  • Automatic packaging as b4xlib library.zip
    901 bytes · Views: 25
  • B4XLibs.b4xtemplate
    10.2 KB · Views: 21
Last edited:

byz

Active Member
Licensed User
note: When using project templates, pay attention to adding modules to the parent directory.
-----------------------------------------------
Zip's compressed file contains batch files of bat, which can be modified according to one's own situation.You can also modify the shortcuts in the IDE.
In short, you can edit it freely to meet your own needs.
 
Top