Repository navigation
feat(updates): GitHub Releases連携のアップデート確認・ダウンロード機能と配信ワークフローを追加 - #41
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Closes #39
概要
GitHub Releases API(
/repos/HR0101/AllServerForMac/releases/latest)と連携し、アプリ起動時(自動)およびメニュー/詳細設定画面(手動)から新バージョンの確認・リリースノート表示・更新パッケージ(AllServerForMac.app.zip)のダウンロードを行えるアップデート機能(Issue #39 方式A)を実装しました。あわせて、
vMAJOR.MINOR.PATCHタグの push に連動して Universal Release ビルド・ZIP生成・GitHub Releases 公開を自動化するワークフローと配信手順ドキュメントを整備しました。主な変更点
アップデート確認・ダウンロード基盤とUI (
Features/Updates)UpdateVersion: SemVer 準拠のバージョン比較(1.2と1.2.0の同一視、プレリリース順序、同一バージョンでの+BUILDビルド番号比較)を実装AppUpdater: 最新リリース取得、対象リポジトリURLの検証(AppRelease.trustedURL)、「このバージョンをスキップ」と自動確認フラグ・最終確認日時のUserDefaults永続化、進捗通知・キャンセル対応のZIPダウンロード機能を実装AppUpdateView/UpdateSettingsSection/AppUpdateAvailabilityButton: 更新案内ウィンドウ、設定セクション、新バージョン検出時の「アップデート可能」ボタンを実装アプリ各画面・メニューへの統合
AllServerForMacApp: アプリメニューに「アップデートを確認…」を追加し、AppDelegate.applicationDidFinishLaunchingで起動時の自動確認(テスト実行時を除く)を実行ContentView: ツールバーに新バージョン検知時のみ表示されるAppUpdateAvailabilityButtonを配置PreferencesView: 詳細設定シートに「更新」セクション(UpdateSettingsSection)とセクションジャンプを追加単体テスト (
AllServerForMacTests/AppUpdaterTests.swift)リリース自動化ワークフロー & ドキュメント
.github/workflows/release.yml:v*.*.*タグ push 時に単体テスト、Universal Binary(arm64/x86_64)の Release ビルド、アドホック署名、AllServerForMac.app.zip作成、GitHub Releases 公開を自動実行RELEASING.md/README.md: アップデート機能の仕様とタグ・バージョン番号・配信手順を記載機能・変更内容別コミット一覧
098ea3e-feat(updates): GitHub Releases連携のアップデート確認・ダウンロード機能とUIを追加AllServerForMac/Features/Updates/AppUpdater.swiftAllServerForMac/Features/Updates/AppUpdateView.swift3df5d58-feat(updates): メニュー・設定画面・ツールバーへアップデート確認導線を統合AllServerForMac/App/AllServerForMacApp.swiftAllServerForMac/App/Views/ContentView.swiftAllServerForMac/Features/Settings/Views/PreferencesView.swift9cb6201-test(updates): セマンティックバージョン比較とアップデート状態遷移の単体テストを追加AllServerForMacTests/AppUpdaterTests.swiftd2bbb59-ci(release): タグpush連動のUniversal Releaseビルド・GitHub Releases公開ワークフローを追加.github/workflows/release.yml1630b8b-docs(updates): アップデート機能の仕様とリリース配信ルールを追記README.mdRELEASING.md