Ana içeriğe atla

Aygıt modeli veritabanı (kolay okunabilir adlar)

macOS yardımcı uygulaması, Apple model tanımlayıcılarını (ör. iPad16,6, Mac16,6) insan tarafından okunabilir adlarla eşleyerek Instances kullanıcı arayüzünde kolay okunabilir Apple aygıt modeli adlarını gösterir. Eşleme, şu dizin altında JSON olarak dahil edilir:
  • apps/macos/Sources/OpenClaw/Resources/DeviceModels/

Veri kaynağı

Şu anda eşlemeyi MIT lisanslı şu depodan dahil ediyoruz:
  • kyle-seongwoo-jun/apple-device-identifiers
Derlemeleri deterministik tutmak için JSON dosyaları belirli yukarı akış commit’lerine sabitlenir (apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md içinde kaydedilir).

Veritabanını güncelleme

  1. Sabitlemek istediğiniz yukarı akış commit’lerini seçin (biri iOS, biri macOS için).
  2. apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md içindeki commit hash’lerini güncelleyin.
  3. Bu commit’lere sabitlenmiş olarak JSON dosyalarını yeniden indirin:
IOS_COMMIT="<commit sha for ios-device-identifiers.json>"
MAC_COMMIT="<commit sha for mac-device-identifiers.json>"

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 dosyasının hâlâ yukarı akışla eşleştiğinden emin olun (yukarı akış lisansı değişirse dosyayı değiştirin).
  2. macOS uygulamasının temiz bir şekilde derlendiğini doğrulayın (uyarı olmadan):
swift build --package-path apps/macos