Forum Discussion
OwlchemyDawson
7 years agoHonored Guest
Query Latest Version Code of Uploaded Builds in Unity Editor
How can I query the latest version code of the builds I have uploaded to the Oculus Store page channels from the Unity Editor?
2 Replies
Replies have been turned off for this discussion
- dan-gxExplorer
+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." - twistedpixel_bobExpert Protege
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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 months ago