Hello Erel,
I do know about and previously looked at #CustomBuildAction. I find that the the custom action runs and works 100% perfect, but then the IDE still runs and continues to reinstall the compiled app again as showed in the compile windows (look below). If the #CustomBuildAction just had an Exit or Stop command, this would fix the issue. Actually, please let me know if there is a simple solution as I have scowered the forum and not found one. I've most probably missed a simple solution, something like #CustomBuildAction: 4, Exit... or something like that.
Running custom action. (25.61s)
Installing file to device.
The above image shows the #CustomBuildAction and installs perfect with the adb install options, but then the IDE continues and installs the file again but fails..
Basically I need an elegant way to stop the IDE continuing after the #CustomBuildAction (in this case after Step id #4). Please note, it can't be set to Step id #5 as the install fails without the adb install option(-) thus the custom build action does not run if set to Step id #5.
Is there a way to stop the IDE from continuing to install the apk file onto the device after running #CustomBuildAction.
Please note that I can and do actually stop the IDE from running by adding a second #CustomBuildAction below the first #CustomBuildAction that I actually want to use. This second #CustomBuildAction runs a batch file that causes an error, thus the IDE stops running and that means no second installation attempt, perfect. Does this work, yes it does but it's not the correct way to do things. I'm probably missing something obvious so please advise.
It would be nice if B4A had a compile option that ran and includes the #CustomBuildAction but does not try to run/install the apk file afterwards.
I do use the following line when I just want to compile without installing, but doing this followed by a #CustomBuildAction would be just perfect, maybe.
'Click to build: ide://run?File=%B4X%\B4ABuilder.exe&Args=-Task%3DBuild&Args=-BaseFolder%3D..
I've also looked at using Comment Links to run a batch file, but...
Just my 2 thoughts...
Thank you...