Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] AppImage Version Detection and Handling Multiples. #12

Open
xaoseric opened this issue Mar 14, 2021 · 0 comments
Open

[Feature] AppImage Version Detection and Handling Multiples. #12

xaoseric opened this issue Mar 14, 2021 · 0 comments

Comments

@xaoseric
Copy link

As per #10, this is the proposed way for detecting .AppImage versions. Putting this here so we can gather feedback on it. The current implementation currently matches for files with the .AppImage suffix.

So thinking about it again maybe we could do something much simpler which would cover at least >80% of cases:

  1. Look for files with the .AppImage suffix
  2. If there are at least 2 - characters in the filename, remove everything behind the second-last - character from the filename
  3. there is only one - character in the filename, remove everything behind the -
  4. Replace _ with
  5. Compare the result against what the user wants to launch to determine whether we have a candidate
  6. If there are at least 2 - characters in the filename, assume that what is between the first and second - is the version; this will be needed to decide amongst several candidates (to pick the latest version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant