Android Question CustomBuildAction Rename APK with version

Blueforcer

Well-Known Member
Licensed User
Longtime User
Is 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
 

teddybear

Well-Known Member
Licensed User
Is 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
Is this what you want?
B4X:
#CustomBuildAction: 5, %WINDIR%\System32\cmd.exe, /c rename Netplus.apk  NetplusCore_1.2.5.apk
 
Last edited:
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
It means to use some variable (Application.VersionName) in CustomBuildAction
 
Upvote 0

teddybear

Well-Known Member
Licensed User
It means to use some variable (Application.VersionName) in CustomBuildAction
It is also easy to customize an app for the feature.
B4X:
B4XMainPage.bas
#CustomBuildAction: 5, %WINDIR%\System32\B4ARenameApk.exe, ..\..\B4XMainPage.bas version

B4XMainPage.bas
...
Private version As String="1.0.2"
...
The app B4ARenameApk.exe is attached. download and move it into %WINDIR%\System32\ folder
 
Last edited:
Upvote 0

byz

Active Member
Licensed User
The methods here may work.
 
Upvote 0
Top