Make it easier in appimagetool to produce valid update information and .zsync files
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza por el manejo de --make-updatable de appimagetool e inspecciona cómo se generan actualmente la información de actualización y la salida .zsync. Define cómo las variables de entorno de GitHub Actions alimentan el proceso, qué deben explicar stdout y stderr y cómo pueden los usuarios verificar el hosting y las actualizaciones. Como en el issue no se nombran archivos ni pruebas, primero deben localizarse los puntos de entrada relevantes y la cobertura de pruebas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C
- Estrellas
- 462
- Forks
- 61
- Merge medio
- 20 min
- PR fusionados (30 d)
- 8
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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de AppImage/appimagetool
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
AppImage/appimagetool#141 · 1 comentario ·
-
All my workflows are failing due to recent changesPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
AppImage/appimagetool#138 · 74 comentarios · 7 reacciones ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
AppImage/appimagetool#136 · 2 comentarios ·
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
AppImage/appimagetool#132 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
AppImage/appimagetool#127 · 3 comentarios ·
Todos los issues de AppImage/appimagetool
Issues similares
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
kamgurgul/mib2q-carplay#74 ·
-
Claude:NotNeeded GPT:NotABug triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
open5gs/open5gs#5195 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
FriendsofECCE/ECCE#1358 ·
-
`gamma` is log-gamma on Linux (glibc) but the gamma function elsewhere; gojq and jaq implement ΓAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
documentation needs-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
X11Libre/xserver#4255 · 2 comentarios ·
Los mantenedores suelen responder en 1 día