メインコンテンツへスキップ

デバイスモデルデータベース(わかりやすい名前)

macOS companion appは、Appleのmodel identifier(例: iPad16,6, Mac16,6)を人間が読める名前へマッピングすることで、Instances UIにAppleデバイスのわかりやすいモデル名を表示します。 このマッピングは、次の場所にJSONとしてvendorされています。
  • apps/macos/Sources/OpenClaw/Resources/DeviceModels/

データソース

現在、このマッピングはMITライセンスのrepositoryからvendorしています。
  • kyle-seongwoo-jun/apple-device-identifiers
buildを決定的に保つため、JSON filesは特定のupstream commitに固定されています(apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md に記録)。

データベースの更新

  1. 固定したいupstream commitを選びます(iOS用に1つ、macOS用に1つ)。
  2. apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md のcommit hashを更新します。
  3. それらのcommitに固定してJSON filesを再ダウンロードします。
IOS_COMMIT="<ios-device-identifiers.json 用の commit sha>"
MAC_COMMIT="<mac-device-identifiers.json 用の commit sha>"

curl -fsSL "https://raw.githubusercontent.com/kyle-seongwoo-jun/apple-device-identifiers/${IOS_COMMIT}/ios-device-identifiers.json" \
  -o apps/macos/Sources/OpenClaw/Resources/DeviceModels/ios-device-identifiers.json

curl -fsSL "https://raw.githubusercontent.com/kyle-seongwoo-jun/apple-device-identifiers/${MAC_COMMIT}/mac-device-identifiers.json" \
  -o apps/macos/Sources/OpenClaw/Resources/DeviceModels/mac-device-identifiers.json
  1. apps/macos/Sources/OpenClaw/Resources/DeviceModels/LICENSE.apple-device-identifiers.txt が引き続きupstreamと一致していることを確認します(upstream licenseが変更されていたら置き換えてください)。
  2. macOS appがクリーンにbuildできることを確認します(warningなし)。
swift build --package-path apps/macos