Normally, interacting with the executable in Tracker, like right-clicking, should identify it and have it show the custom icon.
Or you could do a mimeset -f Attrify.
An additional question on that topic:
If my application is using a resources file to have the version, signature and icon, what is the aim to have also these information duplicated in the attributes of the application ?
I imagine it’s relative to the possibility to query these information via attributes (whereas it’s not possible for resources attached to the file)
EDIT: If I understood correctly, the first step is to have the resource file, then the system is using this resource file to propagate it into attributes (for the Tracker, etc). So it means the golden source is the resources file for such information.
Ressources needs the file to be an ELF file. So not all kind of files could have ressources.
Meanwhile attributes needs the file system to supports attributes, but any kind of files could, then, have attributes. Even directories, in fact.
BeFS is optimized to place along the traditional node info the first attributes data, making retrieving them in one block read possible (and compact HVIF format helps a lot here to make the custom icon being there), while ressources, when file is an ELF file, needs accessing not just the file node info block but also the file content, and a far more complex parsing of that data.
Ressources are more about executable programs structured assets.