Regarding build versionName and %v in metadata yml
@linsui or @licaon-kter I need some help regarding creating the initial yml for the variant of my app.
I already have the base version of Wallflow in F-Droid. I have a 'Plus' variant of it which I would like to add to F-Droid. But I have a question regarding specifying the %v for the binary
url.
The versionName
of my 'Plus' app follows the pattern x.x.x-plus, but the binaries get released under the vx.x.x tag.
For e.g., for the 1.3.1 release of my app:
- The tag is v1.3.1
- The base versionName is 1.3.1
- The base binary url for x86 is: https://github.com/ammargitham/WallFlow/releases/download/v1.3.1/app-base-x86-release-signed.apk
- The plus versionName is 1.3.1-plus
- The plus binary url for x86 is: https://github.com/ammargitham/WallFlow/releases/download/v1.3.1/app-plus-x86-release-signed.apk
When creating the yml file, %v in binary would be incorrect, as it would resolve to 1.3.1-plus
instead of 1.3.1
:
- versionName: 1.3.1-plus
versionCode: 801
commit: 01996f92e5af8f47ce34f801af88f0695f609a86
subdir: app
sudo:
- apt-get update
- apt-get install -y openjdk-17-jdk-headless
- update-java-alternatives -a
gradle:
- plus
binary: https://github.com/ammargitham/WallFlow/releases/download/v%v/app-plus-x86-release-signed.apk
gradleprops:
- fdroid
- abi=x86
How can I reference the versionName
without the -plus
part?
I looked into AutoUpdateMode
with +-plus %v
but I couldn't make it work.