V2: AppImage updates: support pre-releases and document/relax the exact X-CachyOS-PI-Release tag match
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- cpp, github
- Domain
- backend-api-design, desktop
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- 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.
- 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.
- 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.
- Dominant language
- C++
- Stars
- 93
- Forks
- 53
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 24
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CachyOS/packageinstaller
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CachyOS/packageinstaller#211 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
CachyOS/packageinstaller#203 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
CachyOS/packageinstaller#201 ·
Maintainers usually reply within 1 day
-
[Bug]: Flatpak page shows flathub/stable for an app installed from flathub-beta (PrusaSlicer: 2.9.7 offered, 3.0.0 installed)Possibly taken @Gvolexe claimed this 7 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CachyOS/packageinstaller#144 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
CachyOS/packageinstaller#76 ·
Maintainers usually reply within 1 day
All issues in CachyOS/packageinstaller
Similar issues
-
Flow Needs: Triage :mag:
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
react/react-native#60447 ·
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
TransformInteract: a circle drag through the centre sets Scale to its minimum, which can't grow backOpendifficulty:easy prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NatronGitHub/openfx-supportext#311 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
OpenEmu-Silicon/OpenEmu-Silicon#920 · 1 comment ·
Maintainers usually reply within 1 day