[websites/apps-kde-org] /: Show nightly Flatpak if available
Julius Künzel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 49db777d68593f7db6d1d0e0ec2cc9929a9aec9e by Julius Künzel.
Committed on 13/08/2026 at 22:49.
Pushed by jlskuz into branch 'master'.
Show nightly Flatpak if available
M +3 -0 i18n/en.yaml
M +8 -1 layouts/partials/app_main_btm_left_btm.html
M +15 -0 main.py
https://invent.kde.org/websites/apps-kde-org/-/commit/49db777d68593f7db6d1d0e0ec2cc9929a9aec9e
diff --git a/i18n/en.yaml b/i18n/en.yaml
index 4881594..ef2f0dd 100644
--- a/i18n/en.yaml
+++ b/i18n/en.yaml
@@ -100,6 +100,9 @@ android-armeabi-v7a:
android-x86_64:
other: Android Intel
+nightly-flatpak-description:
+ other: "Download the [flatpakref file](%1) and open it with your software center for installation or run the following in a terminal:"
+
# releases and extensions
releases:
other: "Releases"
diff --git a/layouts/partials/app_main_btm_left_btm.html b/layouts/partials/app_main_btm_left_btm.html
index 750c248..6496140 100644
--- a/layouts/partials/app_main_btm_left_btm.html
+++ b/layouts/partials/app_main_btm_left_btm.html
@@ -137,7 +137,14 @@ SPDX-License-Identifier: GPL-3.0-or-later
<p>{{ i18n "nightly-unstable-desc" }}</p>
<ul>
{{ if in .Params.ci_builds "linux" }}
- <li><a href="https://cdn.kde.org/ci-builds/{{ .Params.repository }}/master/linux/">Linux</a></li>
+ <li><a href="https://cdn.kde.org/ci-builds/{{ .Params.repository }}/master/linux/">Linux (AppImage)</a></li>
+ {{ end }}
+ {{ if .Params.nightly_flatpak }}
+ <li>{{ i18n "flatpak" }}
+ <p><small>{{ partial "fn/i18n_args" (slice "nightly-flatpak-description" .Params.nightly_flatpak ) | markdownify }}<br>
+ <code>flatpak install --user --or-update {{ .Params.nightly_flatpak }}</code>
+ </small></p>
+ </li>
{{ end }}
{{ if in .Params.ci_builds "windows" }}
<li><a href="https://cdn.kde.org/ci-builds/{{ .Params.repository }}/master/windows/">Windows</a></li>
diff --git a/main.py b/main.py
index c431b0f..ee8e95c 100644
--- a/main.py
+++ b/main.py
@@ -227,6 +227,19 @@ def fetch_ci_builds(repository: str) -> list[str]:
return result
+def fetch_nightly_flatpak(app_id, app_short_id) -> str:
+ if app_id == '' or app_short_id == '':
+ return ''
+
+ url = f'https://cdn.kde.org/flatpak/{app_short_id}-nightly/{app_id}.flatpakref'
+ res = requests.get(url)
+
+ if res.status_code == 200:
+ return url
+
+ return ''
+
+
def prepare_screenshot_data(data: dict):
data["screenshots"] = []
data["screenshot_captions"] = []
@@ -312,6 +325,8 @@ def prepare_common_data(data: dict, flathub_apps, archlinux_snap):
data["ci_builds"] = fetch_ci_builds(data["repository"])
+ data['nightly_flatpak'] = fetch_nightly_flatpak(app_id, app_short_id)
+
if app_short_id in unmaintained:
data["Categories"] = ["unmaintained"]
elif "Categories" not in data or not data["Categories"]: