Make it easier in appimagetool to produce valid update information and .zsync files
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia dalla gestione di --make-updatable di appimagetool e analizza come vengono attualmente prodotte le informazioni sugli aggiornamenti e l’output .zsync. Definisci in che modo le variabili d’ambiente di GitHub Actions alimentano il processo, cosa dovrebbero spiegare stdout e stderr e come gli utenti possono verificare l’hosting e gli aggiornamenti. Poiché nell’issue non sono indicati file o test, è prima necessario individuare i punti di ingresso rilevanti e la copertura dei test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Adoption of update information and .zsync files still leaves to be deserved.
Feedback is that currently implementing update information is too cumbersome, e.g., @ivan-hc (who is very dedicated and spends lots of time) saying
Too many developers does not include this update system with metadata... me included (because I think the documentation is too complicate).
And indeed, putting together valid and working update information and .zsync files is too cumbersome.
So, can we think of input (environment variables) and outputs (stdout, stderr) to make this easier?
E.g. whenever we detect that GitHub Actions environment variables are set, we could construct the update information like this (pseudo-code to get across the idea):
#!/bin/sh
# Check if GitHub Actions environment variables are set
if [ -n "${GITHUB_REPOSITORY}" ]; then
# Split GITHUB_REPOSITORY into actor and repository
REPO_PARTS=(${GITHUB_REPOSITORY//\// })
USER=${REPO_PARTS[0]}
REPO=${REPO_PARTS[1]}
# Construct the update information using GitHub Actions environment variables
UPDATE_INFO="gh-releases-zsync|${USER}|${REPO}|latest|${APPIMAGE_NAME}-*${ARCH}.AppImage.zsync"
# Set the update information as an environment variable
export APPIMAGE_UPDATE_INFORMATION=${UPDATE_INFO}
# Print the constructed update information
echo "APPIMAGE_UPDATE_INFORMATION=${UPDATE_INFO}"
fi
We might use that automatically detected update information and make appimagetool print out a message saying something like
If you want to make your AppImage updateable, use the
--make-updatableargument; it will then use the following update information: $APPIMAGE_UPDATE_INFORMATION"
If the user then indeed uses --make-updatable, appimagetool should embed the update information, produce the .zsync file, and output very clear instructions on how and where to upload the files (under which URLs they must be hosted) and how to test that it all works.
@TheAssassin I hope that this proposal addresses your dislike of "automagic" solutions, while still achieving the desired effect of "nudging" users to using update information.
- Lingua principale
- C
- Stelle
- 462
- Fork
- 61
- Merge medio
- 20m
- PR unite (30g)
- 8
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AppImage/appimagetool
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
AppImage/appimagetool#141 · 1 commento ·
-
All my workflows are failing due to recent changesForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
AppImage/appimagetool#138 · 74 commenti · 7 reazioni ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
AppImage/appimagetool#136 · 2 commenti ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
AppImage/appimagetool#132 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
AppImage/appimagetool#127 · 3 commenti ·
Tutte le issue di AppImage/appimagetool
Issue simili
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
kamgurgul/mib2q-carplay#74 ·
-
Claude:NotNeeded GPT:NotABug triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
open5gs/open5gs#5195 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
FriendsofECCE/ECCE#1358 ·
-
`gamma` is log-gamma on Linux (glibc) but the gamma function elsewhere; gojq and jaq implement ΓAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
documentation needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
X11Libre/xserver#4255 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno