サーバー更新時に最新 APK も登録するようにする - #50
Merged
Merged
Conversation
- 時刻同期後に fake-hwclock へ保存し、RTC のない Raspberry Pi で 再起動時に時刻が巻き戻るのを防ぐ - 選択商品のバーコード PDF もキャッシュ対象にし、枠線あり版も 起動時にウォームアップ。商品の追加・更新・削除をイベントで受けて キャッシュを作り直す - Danger Zone のパスワード照合に接続元ごとのレート制限を追加。 連続失敗が上限に達している間は照合せず 429 と Retry-After を返す
update-app.sh の最後で upload-apk.sh を呼び、jar が同一バージョンで 早期終了する場合も APK の確認だけは行う。 APK の登録に失敗してもサーバーの更新は成功扱いにし、警告のみ出す。 オフライン更新(jar のパス指定)と --skip-apk 指定時は確認しない。
Contributor
🎨 Visual Regression Test Results✅ All visual regression tests passed! All page screenshots match the expected baselines. 📊 Test Coverage
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
ラズパイでサーバーを更新するとき、Android アプリの APK も新しいものがあれば一緒に登録されるようにしました。
これまでは update-app.sh と upload-apk.sh を別々に実行する必要がありました。
変更内容
テスト
test-update-app.sh に 7 件のテストを追加しました。オンライン更新経路を通すため curl スタブを GitHub API とダウンロードに対応させています。
実行結果:
適用方法
スクリプト自体の入れ替えが必要なため、ラズパイ側で scripts/raspberry-pi を配置し直すか install.sh を再実行してください。
Generated by Claude Code