Comment 4 for bug 1638155

Revision history for this message
XiaoGuo, Liu (liu-xiao-guo) wrote :

Please find my code at https://github.com/liu-xiao-guo/helloworld-icon. In the code, I define an "icon" field in the example. When I build the example, it shows:

liuxg@liuxg:~/snappy/desktop/helloworld$ snapcraft
"grade" property not specified: defaulting to "stable"
DEPRECATED: The 'copy' plugin's functionality has been replaced by the 'dump' plugin, and it will soon be removed.
Preparing to pull hello
Pulling hello
Preparing to build hello
Building hello
Staging hello
Priming hello
DEPRECATED: 'icon' defined in snapcraft.yaml. Look at https://github.com/snapcore/snapcraft/blob/master/docs/metadata.md#snap-icon for more information
Snapping 'hello-xiaoguo' |
Snapped hello-xiaoguo_1.0_amd64.snap

It indicates that "DEPRECATED: 'icon' defined in snapcraft.yaml". The icon cannot be correctly reflected in the ubuntu store if it is installed.

However, if I define an icon in the "setup/gui", then the snap icon is shown correctly. If both ways work, I think there could be a duplication for the icon.

My idea is that we create a complete file layout for developer's use. It is up to the developers to come with the right icon file to overwrite the default one. The store does not need to change. Instead, when generating the template using "snapcraft init", we put the default file "icon.png" into the right place so that a developer can refer to the right location to overwrite it with the right file.

Hopefully, I have made myself understood.