Android Question Problem with #CustomBuildAction 3

PJLPJLPJL

Member
I may be wrong (in which case, my apologies) but I don't think this line in the Project Attributes section is working
CustomBuildAction:
#CustomBuildAction: 3,"C:\Users\PJL\B4A\Version.bat",""
There is no indication in the Compile:Build box that a custom action is being run before the APK is signed and the work intended to be done by the '.bat' file is not happening.
Moreover, if the '.bat' file does not exist no error is thrown. Just to see what happened, I changed the step number to 6 and then an error was thrown if the '.bat' file did not exist.

With thanks. PJL
 

PJLPJLPJL

Member
Thank you for the suggestion.
However, I wanted to programatically add a version name to the APK before it was signed. I think "folders ready" is too early in the process for that.
 
Upvote 0

PJLPJLPJL

Member
Sorry Erel, we're at cross-purposes.
I'm wanting to programatically update the android version name text in the manifest file in the APK.
I can do this with a manifest editor (I've downloaded one from https://github.com/WindySha) but it leaves the apk unsigned.
Therefore I need to run this before the apk is signed and installed on the device.
Perhaps this just isn't possible!
 
Upvote 0
Top