Skip to main content

A graphical Program to create and edit AppStream files

Project description

jdAppStreamEdit

A graphical Program to create and edit AppStream files

jdAppStreamEdit

jdAppStreamEdit (previously known as jdAppdataEdit) allows you to easily create and edit AppStream (.appdata.xml or .metainfo.xml) files for your Application.

Features:

  • Easy to use
  • Full support for the Open Age Rating System (OARS)
  • The AppStream files are fully translatable
  • Releases can be imported from GitHub, GitLab, Gitea, Git Repos and NEWS files
  • You can view a preview in Gnome Software
  • You can use a existing .desktop file as template
  • Plugins

Install

Flatpak

You can get jdAppStreamEdit from Flathub

AUR

Arch Users can get jdAppStreamEdit from the AUR

Sourceforge

You can get Windows and AppImage Builds from Sourceforge

pip

You can install jdAppStreamEdit from PyPI using pip:

pip install jdAppStreamEdit

Using this Method, it will not include a Desktop Entry or any other Data file, so you need to run jdAppStreamEdit from the Command Line. Use this only, when nothing else works.

From source

This is only for experienced Users and someone, who wants to package jdAppStreamEdit for a Distro. jdAppStreamEdit should be installed as a Python package. You can use pip or any other tool that can handle Python packages. You need to have lrelease installed to build the Package. After that, you should run install-unix-datafiles.py which wil install things like the Desktop Entry or the Icon in the correct place. It defaults to /usr, but you can change it with the --prefix argument. It also applies the translation to this files. You need gettext installed to run install-unix-datafiles.py.

Here's a example of installing jdAppStreamEdit into /usr/local:

sudo pip install --prefix /usr/local .
sudo ./install-unix-datafiles.py --prefix /usr/local

Translate

You can help translating jdAppStreamEdit on Codeberg Translate

Develop

jdAppStreamEdit is written in Python and uses PyQt6 as GUI toolkit. You should have some experience in both. You can run jdAppStreamEdit.pyto start jdAppStreamEdit from source and test your local changes. It ships with a few scripts in the tools directory that you need to develop.

CompileUI.py

This is the most important script. It will take all .ui files in jdAppStreamEdit/ui and compiles it to a Python class and stores it in jdAppStreamEdit/ui_compiled. Without running this script first, you can't start jdAppStreamEdit. You need to rerun it every time you changed or added a .ui file.

BuildTranslations.py

This script takes all .ts files and compiles it to .qm files. The .ts files are containing the translation source and are being used during the translation process. The .qm contains the compiled translation and are being used by the Program. You need to compile a .ts file to a .qm file to see the translations in the Program.

UpdateTranslations.py

This regenerates the .ts files. You need to run it, when you changed something in the source code. The .ts files are contains the line in the source, where the string to translate appears, so make sure you run it even when you don't changed a translatable string, so the location is correct.

UpdateUnixDataTranslations.py

This regenerates the translation files in deploy/translations. these files contains the translations for the Desktop Entry and the AppStream File. It uses gettext, as it is hard to translate this using Qt. These files just exists to integrate the translation with Weblate, because Weblate can't translate the Desktop Entry and the AppStream file. Make sure you run this when you edited one of these files. YOu need to have gettext installed to use it.

UpdateTranslators.py

This uses git to get a list of all Translators and writes it to jdAppStreamEdit/data/translators.json. This is used to display the translators in the About Dialog. You need git to run this script.

WriteChangelogHtml.py

This read the Changelog from deploy/page.codeberg.JakobDev.jdAppStreamEdit.metainfo.xml, converts it to HTML and writes it to jdAppStreamEdit/data/changelog.html. This is used to display the Changelog in the About Dialog. You need appstream-python to be installed to use this script.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jdappstreamedit-9.2.tar.gz (179.5 kB view details)

Uploaded Source

Built Distribution

jdAppStreamEdit-9.2-py3-none-any.whl (227.4 kB view details)

Uploaded Python 3

File details

Details for the file jdappstreamedit-9.2.tar.gz.

File metadata

  • Download URL: jdappstreamedit-9.2.tar.gz
  • Upload date:
  • Size: 179.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for jdappstreamedit-9.2.tar.gz
Algorithm Hash digest
SHA256 9311dce0b4036473d6a3644a35404b1bbffb4b157b983c321528a48a9e83b85e
MD5 1de75f471a8a55039b113be082432ba3
BLAKE2b-256 fdbdf31fff32a179d4d49b5a7b074c66f017a51ce43ab4da54f7435223b21129

See more details on using hashes here.

File details

Details for the file jdAppStreamEdit-9.2-py3-none-any.whl.

File metadata

File hashes

Hashes for jdAppStreamEdit-9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 feb0633009747c1bb2e336ac5a0109526a646a01a327f2b2d8f69117dca45acd
MD5 c8b653802e5b720452cd36c947f3183e
BLAKE2b-256 96f667d8737191dfb686432d11ee5404b8801b1e0bda31e32cabb9a4fa7c3166

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page