ImranR98 / Obtainium

Get Android app updates straight from the source.
https://obtainium.imranr.dev
GNU General Public License v3.0
7.27k stars 161 forks source link

Problem with pre-release #339

Closed blap closed 1 year ago

blap commented 1 year ago

Example: joplin-android This github put pre-releases in "Tags" and not in "Releases". So the function to updates pre-releases do not work. Another problem with this is if I install manually the pre-release, obtanium will try to get and install an anterior version from "Releases".

ImranR98 commented 1 year ago

I don't see any prereleases on that repo. In any case, the pre-release toggle is meant to work with GitHub's standard prerelease indicator. If a developer uses their own non-standard approach, we can't support it (no consistency). You could try filtering by release title if possible.

blap commented 1 year ago

I don't see any prereleases on that repo. In any case, the pre-release toggle is meant to work with GitHub's standard prerelease indicator. If a developer uses their own non-standard approach, we can't support it (no consistency). You could try filtering by release title if possible.

You can see in Tags. Example: https://github.com/laurent22/joplin-android/releases/tag/android-v2.10.8

ImranR98 commented 1 year ago

Hmm, for some reason doesn't show up in releases. Will look into this.

ImranR98 commented 1 year ago

Apparently a developer can create a tag and even attach an APK to it, without creating a release. I don't see a way in the API docs to get APKs for a non-release tag. Aside from that, supporting this would require doubling the number of API requests we make to GitHub and this would be an issue for users without an API key. Not worth it given this system is only used by a rare few apps.

For reference:

Let me know if there's any API params or other tricks we could use, but as it stands this is not worth supporting.

blap commented 1 year ago

Apparently a developer can create a tag and even attach an APK to it, without creating a release. I don't see a way in the API docs to get APKs for a non-release tag. Aside from that, supporting this would require doubling the number of API requests we make to GitHub and this would be an issue for users without an API key. Not worth it given this system is only used by a rare few apps.

For reference:

Let me know if there's any API params or other tricks we could use, but as it stands this is not worth supporting.

I can only think now in web scraping but it is not the best option. Sorry.