Skip to content

Commit

Permalink
generates requirements info
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Mar 29, 2024
1 parent b216813 commit c5f5e0a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions content/schemas/packages/PackageInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -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]+"
}
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion repogen/apidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 1 addition & 0 deletions repogen/pkg_registery.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

class PackageRequirements(TypedDict):
webosRelease: NotRequired[str]
deviceSoC: NotRequired[List[str]]


class PackageRegistry(TypedDict):
Expand Down

0 comments on commit c5f5e0a

Please sign in to comment.