B4A Tutorial [B4X] #CustomBuildAction - Erel    
Sep 16, 2025   
(14 reactions)The #CustomBuildAction attribute allows running external programs during the compilation process.
The syntax is:
#CustomBuildAction <compilation step>, command to run, zero or more arguments... the project folders are created if needed:
#CustomBuildAction: folders ready... Objects folder.
- Multiple actions can be added during the same compilation step.
- CustomBuildActions are not executed when building from the command line....
B4A Tutorial Using CustomBuildAction to deploy to multiple devices at once - Erel    
Apr 19, 2020   
(7 reactions)This tutorial will demonstrate how you can use CustomBuildAction attribute to deploy to multiple... the installation step (step #4).
#If RELEASE
'emulator
#CustomBuildAction: 4, c:\android-sdk-windows7\platform-tools\adb.exe, -s emulator-5554 install -r 1.apk
#CustomBuildAction: 4, c:\android-sdk...
link: Although this thread is old, I just encountered the problem of not being able to connect adb over usb, and want to share the helpful ...
link: 33334
Dear All,
you may use also this small little software attached to let the IDE connect to many devices at once. This what I a...
B4J Code Snippet Collection of #Macro and #CustomBuildAction - aeric    
Apr 9, 2026   
(17 reactions)GitHub: https://github.com/pyhoon/Collection-of-Macro-and-CustomBuildAction
With new version... #Macro or #CustomBuildAction
#Macro: Title, Rename, ide://run?file=%COMSPEC%&Args=/c&Args...
link: Added CustomBuildAction for publishing server app....
link: Added macro for Code Bundle and other fixes....
link: templates, the $APPNAME$.b4j.meta file has this:
NavigationStack=Main,AppStart,32,1
SelectedBuild=0...
B4J Code Snippet Rename result.jar using #Macro or #CustomBuildAction - aeric    
Sep 24, 2025   
(2 reactions) Libraries folder
#CustomBuildAction: 2, %COMSPEC%, /c copy result.jar %ADDITIONAL%\..\B4X\libget-non-ui.jar
Method 3: build the jar without running
https://www.b4x.com/android/forum/threads/b4abuilder...
link: Added Method 2, just copy the result.jar to another destination.
#CustomBuildAction: 2, %COMSPEC%...
link: Added Method 3 to build the jar without running by using B4JBuilder.exe...
link: Added &Args=IF+EXIST+result.jar to check if the file exists or already renamed for Method 1....
B4J Question #CustomBuildAction: Copy entire folder - jmon    
May 24, 2023
I found this example for a single file:
#CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, ..\ temp\build\bin\ Charsets.properties
How to modify to copy a folder "AdditionalFolder" that would be located at the root of my project?
#CustomBuildAction: After Packager...
link: Great thank you.
This is the result of what I needed:
#CustomBuildAction: After Packager...
link: :
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files...
B4J Tutorial Using CustomBuildAction with WinRAR - aeric    
Jan 25, 2022   
(3 reactions)We can use #CustomBuildAction to archive some files and folders into a ZIP or RAR file (if you have WinRAR installed).
#If RELEASE
#CustomBuildAction: 2, C:\Program Files\WinRAR\WinRAR.exe, a upload...
link:
With a few minutes trial-and-error:
'Click to create Publish.zip: ide://run?file=%JAVABIN%\jar...
link: /forum/threads/b4x-comment-link-to-build-b4xlib.119934/#content
With a few minutes trial-and-error...
link: /threads/b4x-comment-link-to-build-b4xlib.119934/#content...
B4J Tutorial Integrated B4JPackager11 - The simple way to distribute standalone UI apps - Erel    
Feb 26, 2026   
(50 reactions) with Java 14 and Google Maps. Use Java 11 for now if using jGoogleMaps.
You can use #CustomBuildAction...:
#CustomBuildAction: After Packager, %WINDIR%\System32\robocopy.exe, ..\ temp\build\bin\ jssc.dll... folder (C:\Users\H\Downloads\test for example):
#CustomBuildAction: After Packager...
#CustomBuildAction: After Packager, C:\Program Files (x86)\Inno Setup 6\Compil32.exe, /cc... - Build Standalone Package.
External tool: https://www.b4x.com/android/forum/threads/b4jpackager11...
B4A Question What the different between #CustomBuildAction and #Macro in B4A 13.3? - Olaan    
May 28, 2025Refer to New version B4A 13.3 BETA #1,#CustomBuildAction will be replaced with #Macro 100% ,or not?...
link: .
CustomBuildAction - actions that are executed during compilation. For historic reasons their syntax is different...
B4A Question CustomBuildAction Rename APK with version - Blueforcer    
Feb 7, 2025Is it possible,using CustomBuildAction, to rename the compiled APK and add the current VersionName?
So Netplus.apk becomes NetplusCore_1.2.5.apk for example?
thanks in advise...
link: The methods here may work.
https://www.b4x.com/android/forum/threads/generate-a-non-english-apk-file...
link:
It means to use some variable (Application.VersionName) in CustomBuildAction
It is also easy to...
link:
It means to use some variable (Application.VersionName) in CustomBuildAction
Thats correct...
Wish Project parameters for CustomBuildAction - tchart    
Dec 16, 2024   
(1 reaction) CustomBuildAction arguments too?
Referring to this; https://www.b4x.com/android/forum/threads/b4x-comment-links... with custom build actions
eg #CustomBuildAction: 2, D:\Temp\test.bat, %PROJECT_NAME%
Where test.bat is
echo... the parameters when they are used in the arguments
#CustomBuildAction: 2, %PROJECT_NAME%\test.bat,...
link: Thanks Erel!...
link: Implemented for the next version.
#CustomBuildAction: folders ready, %WINDIR%\System32\cmd.exe...
Page: 1  
2  
3  
4  
5  
6  
7