cancel
Showing results for 
Search instead for 
Did you mean: 

Query Latest Version Code of Uploaded Builds in Unity Editor

OwlchemyDawson
Honored Guest
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 2

dan-gx
Explorer

+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_bob
Expert 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.