Skip to content

Version extraction for Github Releases #1286

Closed Answered by ImranR98
kjurl asked this question in Q&A
Discussion options

You must be logged in to vote

Version extraction works differently in the HTML source compared to all others:

  • In the HTML source, it is used to extract the version number from the APK URL. If you don't do this, the entire URL is hashed and that hash is used as a "version".
  • For all other sources, it is used to remove parts of the version string returned by the source (which, in GitHub's case, is the tag as you mentioned). So for example, if a release's tag is v1.2.3-fdroid, you may only want 1.2.3 and can use version detection to accomplish that.

While version extraction is about grabbing a version string from the source (for HTML) or modifying it (for others), version detection is about detecting what version of an …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by kjurl
Comment options

You must be logged in to vote
1 reply
@kjurl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants