diff --git a/content/schemas/packages/PackageInfo.json b/content/schemas/packages/PackageInfo.json index 5a551a5..ef7843c 100644 --- a/content/schemas/packages/PackageInfo.json +++ b/content/schemas/packages/PackageInfo.json @@ -39,6 +39,14 @@ "webosRelease": { "type": "string", "description": "webOS Release version (check /etc/starfish-release)" + }, + "deviceSoC": { + "type": "array", + "description": "Device SoC type (check /etc/prefs/properties/machineName)", + "items": { + "type": "string", + "pattern": "!?[a-z0-9]+" + } } } }, diff --git a/repogen/apidata.py b/repogen/apidata.py index 9fa6072..d284f6f 100755 --- a/repogen/apidata.py +++ b/repogen/apidata.py @@ -15,7 +15,8 @@ from repogen.pkg_info import PackageInfo from repogen.siteurl import siteurl -MANIFEST_KEYS = ('id', 'title', 'iconUri', 'manifestUrl', 'manifest', 'manifestUrlBeta', 'manifestBeta', 'pool') +MANIFEST_KEYS = ('id', 'title', 'iconUri', 'manifestUrl', 'manifest', 'manifestUrlBeta', 'manifestBeta', 'pool', + 'requirements') def fix_manifest_url(item: PackageInfo, app_dir: Path): diff --git a/repogen/pkg_registery.py b/repogen/pkg_registery.py index 5359a44..45b4c18 100644 --- a/repogen/pkg_registery.py +++ b/repogen/pkg_registery.py @@ -7,6 +7,7 @@ class PackageRequirements(TypedDict): webosRelease: NotRequired[str] + deviceSoC: NotRequired[List[str]] class PackageRegistry(TypedDict):