-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
Download button for gitlab.com Releases #3249
Comments
@probonopd I'd be happy to help on this, i've seen where this must be changed, mainly code/worker.sh ? |
Everything happens in appimage.github.io/code/worker.sh Lines 498 to 511 in 438806f
|
Wow that thing is wild. Two questions:
I'll make a PR soon so that you can comment on it. Thanks. |
This script has "organically grown" over the years and it's been a while...
|
Ok. Here's a first version. The URL parsing works, the rest i don't know but i don't see why it wouldn't. It sets type as GitLab in the links section, there must be another place in the codebase (website generation) that would need to be changed i suppose. |
Shouldn't we check whether GLURL contains the AppImage download URL given in
From a quick look it doesn't seem to be the case; we are currently not using that information (altough we could e.g., show GitHub/GitLab/... icons on the buttons). |
GLURL equals to the releases root URL (https://gitlab.com/cipres/gemgemgem/-/releases/ for example). Not sure what you mean by "contains", contains like "string contains", or like "in the releases page (GLURL) there's a release which has an asset with that appimage download URL" ? |
Whatever works best to prevent us from linking to .../releases pages that don't contain an AppImage. |
What needs to be done i think, is to run a regexp on the input URL (from the data file), to check if it has a URL pattern that matches the typical URL format of a gitlab release asset:
However there's also this type of URL, which is bound to the project ID: We need to cover both cases. |
If we have an URL in data that looks like this:
https://gitlab.com/cipres/gemgemgem/-/releases/continuous-devel/downloads/Gemalaya-latest-x86_64.AppImage
Then we should use
https://gitlab.com/cipres/gemgemgem/-/releases/
as the URL for the Download button.
References:
The text was updated successfully, but these errors were encountered: