the most of
- Before/After Code Analyze [CA]
- Before/After PreCompiling to Java [CJ]
- Before/After Compiling to Bytecode [CB]
- Before/After Generating APK [GA]
- Before/After Transferring to Device [TD]
should be possible with this one here...
#CustomBuildAction 4,tooltostart.exe, x:\path\to\project.b4a /mode=%%mode%%
Look at the CustomBuildAction documentation. The 4 in this ex can have 1to6 if i remember...
If you dont need the compiling mode (debug, release) then you can realize them already TODAY
-------------------------------------------
Custom Build Actions
The build process is made of a number of steps. You can add additional steps that will run as part of the build process. For example you can run a batch file that will copy the latest resource files from some folder before the files are packed.
Another example. You can use this code to mark all files under res folder as read-only (and prevent the compiler from deleting them):
Code:
#CustomBuildAction: 1, c:\windows\system32\attrib.exe, +r res\*.* /s
Note that you can add any number of build actions.
CustomBuildAction should be added to the main activity.
The running folder is set to the program objects folder.
The syntax is:
<step id>, <program to run>, <program arguments>
step id can be one of the following:
1 - Before the compiler cleans the objects folder (it happens after the code is parsed).
2 - Before R.java file is generated.
3 - Before the package is signed (the APK file at this point is: bin\temp.ap_).
4 - Before the APK is installed.
5 - After the APK is installed.