B4J Question [B4JPackager11] Copy libjssc.so to build/lib folder

aeric

Expert
Licensed User
Longtime User
File libjssc.so should be placed not to /bin folder, but to /lib folder instead. I didn't succeed with copying it automatically through #CustomBuildAction: After Packager instruction, manual copy worked just fine.

How can I automate the copy of libjssc.so to temp/build/lib folder when using B4JPackager11 from Linux?
 

aeric

Expert
Licensed User
Longtime User
One option is to create a bash script that runs the packager and then copies the file.
As the packager is a non-ui app it is simple to run it from the command line (java -jar packager.jar).
Can the #CustomBuildAction call Linux command line such as “cp”?
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
The build actions will run on the same computer that runs the IDE. I guess that you are connected to the Linux computer with B4J-Bridge. It will not help in that case.
I normally call “java -jar B4JPackager 11 packager.json” without using B4JBridge. Is there a way once after the build folder is finish created, I can execute another script to copy the file? I can manually copy the file but if something can done programmatically then I don’t need to worry I will forget to copy it, like copying the dll file into bin folder in Windows.
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
Good. Simply create a bash script (very similar to Windows batch files) that call java -jar... and the calls cp jssc <to the correct place>.

Use the same commands as you write in the terminal.
Ok, I will try it using this method. Thanks.
 
Upvote 0
Top