08-23-2019 04:22 PM
08-04-2021 02:00 PM
+1 this is important for being able to implement a decent deployment pipeline that can handle rollback with Oculus Platform Utility cli.
Can sort-of workaround this by intentionally failing setting an unused channel with a very old build in it and parsing the error.
e.g. to get the current release bundle version:
$ ./ovr-platform-util.exe set-release-channel-build --app_id <app_id> --app_secret <app_secret> source-channel ALPHA --destination-channel RELEASE > out.txt
Then regex parse the version code from out.txt
"ERROR: You are trying to add an APK with version code 12 to a release channel, but the previous APK on this channel has version code 80. The version code must be higher than the previous version code."
09-09-2024 09:36 AM
Do you still use this workaround? Hard to believe there's no API for this. It seems like the ovr-platform-util now doesn't care if you set a build to an older version - so it won't return the latest build number.