Skip to content

Commit

Permalink
added detailIconUri for api
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Mar 31, 2024
1 parent e45b4c7 commit 5715474
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions content/schemas/api/PackageInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,19 @@
"type": "string",
"description": "Image displayed for your app. This is a URL to an image, or data: encoded URI"
},
"detailIconUri": {
"type": "string",
"description": "Image displayed for your app in detail view. This is a URL to an image, or data: encoded URI"
},
"manifestUrl": {
"type": "string",
"description": "Link to manifest, should be pointed to an URL can always provide latest version"
},
"manifest": {
"$ref": "PackageManifest.json"
},
"requirements": {
"$ref": "../packages/PackageInfo.json#/properties/requirements"
}
},
"allOf": [
Expand Down
4 changes: 2 additions & 2 deletions repogen/apidata.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from repogen.siteurl import siteurl

MANIFEST_KEYS = ('id', 'title', 'iconUri', 'manifestUrl', 'manifest', 'manifestUrlBeta', 'manifestBeta', 'pool',
'requirements')
'detailIconUri', 'requirements')


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

def package_item(p_info: PackageInfo, in_apps_dir: bool, is_details: bool):
def package_item(p_info: PackageInfo, in_apps_dir: bool, is_details: bool) -> PackageInfo:
package = {k: p_info[k] for k in MANIFEST_KEYS if k in p_info}
package['shortDescription'] = p_info['manifest'].get(
'appDescription', None)
Expand Down
1 change: 0 additions & 1 deletion repogen/downloadipk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from pathlib import Path
import json.decoder

import requests
import requests.exceptions

from repogen import pkg_info
Expand Down

0 comments on commit 5715474

Please sign in to comment.