I’d like to add that I ran the lint checker on all the files I could. The main Greenery.json file showed no errors however three other files had the following errors:
flathub.json
{
“errors”: [
“toplevel-no-modules”,
“appid-not-defined”,
“jsonschema-validation-error”,
“appid-filename-mismatch”,
“finish-args-not-defined”,
“toplevel-no-command”
],
“jsonschema”: [
“‘runtime’ is a required property”
],
“message”: “Please consult the documentation at Flatpak builder lint | Flathub Documentation”
}
finance.greenery.Greenery.desktop
Traceback (most recent call last):
File “/app/bin/flatpak-builder-lint”, line 8, in
sys.exit(main())
^^^^^^
File “/app/lib/python3.11/site-packages/flatpak_builder_lint/cli.py”, line 169, in main
if results := run_checks(args.type, path, args.exceptions, args.appid):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/lib/python3.11/site-packages/flatpak_builder_lint/cli.py”, line 53, in run_checks
check_method_arg: Union[str, dict] = manifest.show_manifest(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/lib/python3.11/site-packages/flatpak_builder_lint/manifest.py”, line 21, in show_manifest
raise Exception(ret.stderr.decode(“utf-8”))
Exception: Can’t parse ‘/home/lexton/Development/greenery/greenery-flathub/finance.greenery.greenery/finance.greenery.Greenery.desktop’: :1:8: Parse error: unexpected identifier `Desktop’, expected value
finance.greenery.Greenery.appdata.xml
Traceback (most recent call last):
File “/app/bin/flatpak-builder-lint”, line 8, in
sys.exit(main())
^^^^^^
File “/app/lib/python3.11/site-packages/flatpak_builder_lint/cli.py”, line 169, in main
if results := run_checks(args.type, path, args.exceptions, args.appid):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/lib/python3.11/site-packages/flatpak_builder_lint/cli.py”, line 53, in run_checks
check_method_arg: Union[str, dict] = manifest.show_manifest(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/app/lib/python3.11/site-packages/flatpak_builder_lint/manifest.py”, line 21, in show_manifest
raise Exception(ret.stderr.decode(“utf-8”))
Exception: Can’t parse ‘/home/lexton/Development/greenery/greenery-flathub/finance.greenery.greenery/finance.greenery.Greenery.appdata.xml’: :1:1: Parse error: unexpected character `<', expected value
Are some of these errors utf-8 encoding issues? I should check for invisible chars just in case and as for the xml file it may not be formatted properly.
As for flathub.json it looks there are required parameters that I need to add, I created this file based off of other Manifests that I saw. Is there a default template that I can use where I can fill in the options?
I tried the flatpak freedesktop install command and it stated that it was already installed. I need to run through these documentation links first - thanks for the info