Make it easier in appimagetool to produce valid update information and .zsync files
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu từ phần xử lý --make-updatable của appimagetool và kiểm tra cách thông tin cập nhật cũng như đầu ra .zsync hiện được tạo ra. Xác định cách các biến môi trường của GitHub Actions cung cấp dữ liệu cho quy trình, stdout và stderr cần giải thích điều gì, cũng như cách người dùng có thể xác minh việc hosting và các bản cập nhật. Vì issue không nêu tên tệp hoặc bài kiểm thử nào, trước tiên cần xác định các entry point liên quan và phạm vi bao phủ kiểm thử.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C
- Star
- 462
- Fork
- 61
- Merge trung bình
- 20 phút
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AppImage/appimagetool
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
AppImage/appimagetool#141 · 1 bình luận ·
-
All my workflows are failing due to recent changesCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
AppImage/appimagetool#138 · 74 bình luận · 7 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
AppImage/appimagetool#136 · 2 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
AppImage/appimagetool#132 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
AppImage/appimagetool#127 · 3 bình luận ·
Tất cả issue của AppImage/appimagetool
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 3 ngày
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
kamgurgul/mib2q-carplay#74 ·
-
Claude:NotNeeded GPT:NotABug triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
open5gs/open5gs#5195 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
i3-compat
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
FriendsofECCE/ECCE#1358 ·