Skip to content

Commit 5715474

Browse files
committed
added detailIconUri for api
1 parent e45b4c7 commit 5715474

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

content/schemas/api/PackageInfo.json

+7
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,19 @@
2525
"type": "string",
2626
"description": "Image displayed for your app. This is a URL to an image, or data: encoded URI"
2727
},
28+
"detailIconUri": {
29+
"type": "string",
30+
"description": "Image displayed for your app in detail view. This is a URL to an image, or data: encoded URI"
31+
},
2832
"manifestUrl": {
2933
"type": "string",
3034
"description": "Link to manifest, should be pointed to an URL can always provide latest version"
3135
},
3236
"manifest": {
3337
"$ref": "PackageManifest.json"
38+
},
39+
"requirements": {
40+
"$ref": "../packages/PackageInfo.json#/properties/requirements"
3441
}
3542
},
3643
"allOf": [

repogen/apidata.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from repogen.siteurl import siteurl
1717

1818
MANIFEST_KEYS = ('id', 'title', 'iconUri', 'manifestUrl', 'manifest', 'manifestUrlBeta', 'manifestBeta', 'pool',
19-
'requirements')
19+
'detailIconUri', 'requirements')
2020

2121

2222
def fix_manifest_url(item: PackageInfo, app_dir: Path):
@@ -37,7 +37,7 @@ def generate(packages: List[PackageInfo], outdir: Path):
3737
appsdir: Path = outdir.joinpath('apps')
3838
site_url = siteurl()
3939

40-
def package_item(p_info: PackageInfo, in_apps_dir: bool, is_details: bool):
40+
def package_item(p_info: PackageInfo, in_apps_dir: bool, is_details: bool) -> PackageInfo:
4141
package = {k: p_info[k] for k in MANIFEST_KEYS if k in p_info}
4242
package['shortDescription'] = p_info['manifest'].get(
4343
'appDescription', None)

repogen/downloadipk.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from pathlib import Path
33
import json.decoder
44

5-
import requests
65
import requests.exceptions
76

87
from repogen import pkg_info

0 commit comments

Comments
 (0)