V2: AppImage updates: support pre-releases and document/relax the exact X-CachyOS-PI-Release tag match

Abierto
#113 1 comentario 6 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp, github

Línea de trabajo

Start by tracing the AppImage update flow that queries GitHub releases and the Gear Lever importer that reads allow_prereleases; the issue does not name the files or tests. Check how X-CachyOS-PI-Release is compared with tag_name and how release asset digests are exposed. Done means pre-release tracking and migration behavior are defined, mismatched versions do not cause false updates, and the relevant cases are covered.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Hi, and thanks for the new AppImage manager in v2.

I migrated my AppImages from Gear Lever and found three problems with update tracking. I'm on cachyos-packageinstaller-git 2.0.0.r111.

  1. Pre-releases can't be tracked

The updater only queries https://api.github.com/repos/{owner}/{repo}/releases/latest, which never returns pre-releases. Several projects publish all their builds as pre-releases (for example nightly or daily builds), so for them the installer either sees nothing or an old stable release.

Example: Eglantine-Community/Eglantine publishes daily-YYYYMMDD builds, all flagged as pre-releases. /releases/latest returns v0.1.0-rc4, which is older than the daily build I have installed. Tracking it would offer a downgrade.

Suggested solution: a per-app option (for example X-CachyOS-PI-Prereleases=true) that queries /releases and picks the newest entry, similar to the allow_prereleases option in Gear Lever.

  1. X-CachyOS-PI-Release must equal the release tag_name exactly, and this isn't documented

Update detection seems to compare X-CachyOS-PI-Release in the .desktop file with the release's tag_name. If they differ, an update is offered even when the installed file is byte-identical to the latest asset.

Example: Frizti/Fritchii has tag fritchii-v6.2, but the entry had X-CachyOS-PI-Release=v6.2-6dd5b02 (the X-AppImage-Version from inside the AppImage). The installer offered an "update" to the version I already had. The SHA256 of my file matched the asset digest from the GitHub API. Setting it to fritchii-v6.2 fixed it. Same with zortos293/Lichii (tag build-341, entry had build-341-9c9a1df).

Suggested solution: compare the SHA256 digest that the API already returns against the local file, or at least fall back to it when the tag differs. Otherwise, write the tag into X-CachyOS-PI-Release at import time.

  1. The Gear Lever importer silently drops apps with allow_prereleases = True

Of the apps in my gearlever.conf, only the one with allow_prereleases = False got an X-CachyOS-PI-Source after migration. The others (all with GithubUpdater and a valid repo) were imported without a source, so no updates were offered and there was no message about why.

Suggested solution: import the source anyway, or tell the user which apps were imported without update tracking and why.

Related

  • #89 (AppImage configuration / changing the source): editing the source from the UI would also help with the cases above.

I can test fixes or provide more details if useful.

Lenguaje dominante
C++
Estrellas
93
Forks
53
Merge medio
1 d 4 h
PR fusionados (30 d)
24

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de CachyOS/packageinstaller

Todos los issues de CachyOS/packageinstaller

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.