From a74db4a08be625178cfc998ca3e7089a8f8a7f29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 6 Sep 2023 10:37:16 +0200 Subject: [PATCH] Add manifest URL in conversion script manifestv1 -> manifestv2 --- packaging_v2/convert_app_to_packaging_v2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging_v2/convert_app_to_packaging_v2.py b/packaging_v2/convert_app_to_packaging_v2.py index 2705321..7887cdb 100644 --- a/packaging_v2/convert_app_to_packaging_v2.py +++ b/packaging_v2/convert_app_to_packaging_v2.py @@ -474,6 +474,8 @@ if __name__ == "__main__": args = parser.parse_args() manifest = _convert_v1_manifest_to_v2(args.app_path) - open(args.app_path + "/manifest.toml", "w").write(_dump_v2_manifest_as_toml(manifest)) + with open(args.app_path + "/manifest.toml", "w") as manifest_file: + manifest_file.write("#:schema https://raw.githubusercontent.com/YunoHost/apps/master/schemas/manifest.v2.schema.json\n\n") + manifest_file.write(_dump_v2_manifest_as_toml(manifest)) cleanup_scripts_and_conf(args.app_path)