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

Aperta
#113 1 commento 6 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, github

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C++
Stelle
93
Fork
53
Merge medio
1g 4h
PR unite (30g)
24

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di CachyOS/packageinstaller

Tutte le issue di CachyOS/packageinstaller

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.