Qurilma modellari ma’lumotlar bazasi (qulay nomlar)¶
macOS hamroh ilovasi Apple model identifikatorlarini (masalan, iPad16,6, Mac16,6) o‘qilishi oson nomlarga moslab, Instances UI’da ko‘rsatadi.
Moslash JSON ko‘rinishida quyida joylashgan:
apps/macos/Sources/OpenClaw/Resources/DeviceModels/
Ma’lumotlar manbai¶
Hozirda moslash MIT litsenziyali quyidagi repozitoriydan olinadi:
- kyle-seongwoo-jun/apple-device-identifiers
Buildlarni deterministik saqlash uchun JSON fayllar aniq upstream commitlarga bog‘langan (ular apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md da qayd etilgan).
Ma’lumotlar bazasini yangilash¶
- Bog‘lamoqchi bo‘lgan upstream commitlarni tanlang (bittasi iOS uchun, bittasi macOS uchun).
apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.mddagi commit xeshlarini yangilang.- Tanlangan commitlarga bog‘langan JSON fayllarni qayta yuklab oling:
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
apps/macos/Sources/OpenClaw/Resources/DeviceModels/LICENSE.apple-device-identifiers.txtupstream bilan mos kelishini tekshiring (agar upstream litsenziyasi o‘zgargan bo‘lsa, almashtiring).- macOS ilovasi toza tarzda yig‘ilishini tekshiring (ogohlantirishlarsiz):
swift build --package-path apps/macos