Wish Automatic naming of result at compile

TheMightySwe

Active Member
Licensed User
Longtime User
Hi,

Do you think it is possible to get a function that names the output file after the project name?

Example, the project filename is "MyWonderFullApp.b4a" so the output name would be "MyWonderFullApp.apk"

Not neccesary when debugging.

// TMS
 

TheMightySwe

Active Member
Licensed User
Longtime User
Aha, our name contains a "+". Is that a "problematic" character and why? Isn't it better to just remove the "problematic" character than change the whole filename?
 

Straker

Active Member
Licensed User
Longtime User
Aha, our name contains a "+". Is that a "problematic" character and why? Isn't it better to just remove the "problematic" character than change the whole filename?
There are some chars 'forbidden' in a file name just because they are reserved for special purposes.
For example you cannot use wildchars AmIBad?.txt contains a forbidden '?'
 

TheMightySwe

Active Member
Licensed User
Longtime User
The apk name in 99% of the cases is not important. You don't need to bother about these characters.

But still "+" is not a "problematic character" in Windows or in Android. Not what I know of anyway.

B4X:
#If DEBUG
#CustomBuildAction: 4,c:\windows\system32\cmd.exe, rename "C:\B4A Projekt\Checkout+\CheckoutPlus\Objects\result_DEBUG.apk" CheckoutPlus_DEBUG.apk
#End If

#If RELEASE
#CustomBuildAction: 4,c:\windows\system32\cmd.exe, rename "C:\B4A Projekt\Checkout+\CheckoutPlus\Objects\result_DEBUG.apk" CheckoutPlus_RELEASE.apk
#End If

I could not get this to work, but as you said, it's NOT very important, just annoyng.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…