aeric Expert Licensed User Longtime User Feb 16, 2022 #1 Gandalf said: 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. Click to expand... How can I automate the copy of libjssc.so to temp/build/lib folder when using B4JPackager11 from Linux?
Gandalf said: 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. Click to expand... How can I automate the copy of libjssc.so to temp/build/lib folder when using B4JPackager11 from Linux?
Erel B4X founder Staff member Licensed User Longtime User Feb 17, 2022 #2 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). Upvote 0
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).
aeric Expert Licensed User Longtime User Feb 17, 2022 #3 Erel said: 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). Click to expand... Can the #CustomBuildAction call Linux command line such as “cp”? Upvote 0
Erel said: 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). Click to expand... Can the #CustomBuildAction call Linux command line such as “cp”?
Erel B4X founder Staff member Licensed User Longtime User Feb 17, 2022 #4 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. Upvote 0
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.
aeric Expert Licensed User Longtime User Feb 17, 2022 #5 Erel said: 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. Click to expand... 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
Erel said: 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. Click to expand... 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.
Erel B4X founder Staff member Licensed User Longtime User Feb 17, 2022 #6 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. Upvote 0
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.
aeric Expert Licensed User Longtime User Feb 17, 2022 #7 Erel said: 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. Click to expand... Ok, I will try it using this method. Thanks. Upvote 0
Erel said: 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. Click to expand... Ok, I will try it using this method. Thanks.