Rename manifest.json to plugin-manifest.json

Flatpak uses already manifest.json
This commit is contained in:
lovetox
2022-05-08 14:26:24 +02:00
parent 9d3abb721e
commit 3884d1ef4d
15 changed files with 2 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ def download_package_index() -> ManifestT:
def iter_manifests() -> Iterator[PackageT]:
for path in REPO_ROOT.rglob('manifest.json'):
for path in REPO_ROOT.rglob('plugin-manifest.json'):
with path.open() as f:
manifest = json.load(f)
yield manifest, path.parent

View File

@@ -50,7 +50,7 @@ def iter_releases(release_folder: Path) -> Iterator[Dict[str, Any]]:
for path in release_folder.rglob('*.zip'):
with ZipFile(path) as release_zip:
try:
with release_zip.open('manifest.json') as file:
with release_zip.open('plugin-manifest.json') as file:
manifest = json.load(file)
yield manifest
except Exception: