Make it easier in appimagetool to produce valid update information and .zsync files
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
appimagetool の --make-updatable の処理から始め、更新情報と .zsync 出力が現在どのように生成されているかを調査します。GitHub Actions の環境変数がプロセスにどのように渡されるか、stdout と stderr で何を説明すべきか、ユーザーがホスティングと更新をどのように検証できるかを定義します。issue ではファイルやテストが指定されていないため、まず関連するエントリーポイントとテストカバレッジを特定する必要があります。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C
- スター
- 462
- フォーク
- 61
- 平均マージ
- 20分
- マージ済み PR(30日)
- 8
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AppImage/appimagetool のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
AppImage/appimagetool#141 · コメント 1 件 ·
-
All my workflows are failing due to recent changes対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
AppImage/appimagetool#138 · コメント 74 件 · リアクション 7 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
AppImage/appimagetool#136 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
AppImage/appimagetool#132 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
AppImage/appimagetool#127 · コメント 3 件 ·
AppImage/appimagetool の issue をすべて見る
似ている issue
-
[Android Auto] MU1017 (MHI2Q_JP_AUG22_P1017) cluster map works with a pinned profile — values insideオープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
kamgurgul/mib2q-carplay#74 ·
-
Claude:NotNeeded GPT:NotABug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
open5gs/open5gs#5195 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
FriendsofECCE/ECCE#1358 ·
-
`gamma` is log-gamma on Linux (glibc) but the gamma function elsewhere; gojq and jaq implement Γオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
documentation needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
X11Libre/xserver#4255 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信