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
 
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: Copy
#CustomBuildAction: 5, %WINDIR%\System32\cmd.exe, /c rename Netplus.apk  NetplusCore_1.2.5.apk
 
Last edited:
Upvote 0
It means to use some variable (Application.VersionName) in CustomBuildAction
 
Upvote 0
It means to use some variable (Application.VersionName) in CustomBuildAction
It is also easy to customize an app for the feature.
B4X: Copy
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
The methods here may work.
 
Upvote 0

Similar Threads

Replies
0
Views
2K
Replies
1
Views
2K
D
  • Article Article
Android Code Snippet CustomBuildAction
Replies
0
Views
5K
Deleted member 103
D
Back
Top