Apparaatmodeldatabase (gebruiksvriendelijke namen)¶
De macOS Companion-app toont gebruiksvriendelijke Apple-apparaatmodelnamen in de Instances-UI door Apple-modelidentifiers (bijv. iPad16,6, Mac16,6) te koppelen aan voor mensen leesbare namen.
De toewijzing wordt als JSON meegeleverd onder:
apps/macos/Sources/OpenClaw/Resources/DeviceModels/
Databron¶
We leveren de toewijzing momenteel mee vanuit de MIT-gelicentieerde repository:
kyle-seongwoo-jun/apple-device-identifiers
Om builds deterministisch te houden, zijn de JSON-bestanden vastgepind op specifieke upstream-commits (vastgelegd in apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md).
De database bijwerken¶
- Kies de upstream-commits waarop je wilt vastpinnen (één voor iOS, één voor macOS).
- Werk de commit-hashes bij in
apps/macos/Sources/OpenClaw/Resources/DeviceModels/NOTICE.md. - Download de JSON-bestanden opnieuw, vastgepind op die commits:
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
- Zorg ervoor dat
apps/macos/Sources/OpenClaw/Resources/DeviceModels/LICENSE.apple-device-identifiers.txtnog steeds overeenkomt met upstream (vervang het als de upstream-licentie verandert). - Verifieer dat de macOS-app zonder problemen bouwt (geen waarschuwingen):
swift build --package-path apps/macos