Help with the new snap for qbittorrent

Hi, I am new to the snap building process, and thus I decided to get started into this topic by updating an existing snap, which I have forked, for qbittorrent to a newer version.

the repo is located here https://github.com/ibqn/qbittorrent-snap

I got pretty far, I think, and got stack at this point, in which I can not figure out which stage of the snap building process is causing this error

Screenshot from 2021-01-21 22-09-55

to me it looks like the priming stage of the building is already over, thus I got a little bit confused…

There is also a build log here

https://snapcraft.io/qbittorrent-ibqn/builds/1267480

Thus, if you know what is going on, pointer are much appreciated.
Thanks.

mmkay, so switching to the snapcraft version 4.5.post3+gitbe94581c at the moment of writing

sudo snap refresh snapcraft --edge --classic

fixed the issue, as it was suggested in another post (do not know how to refer to it).

@arnatious you’re also publishing qbittorrent, I believe? Maybe you two can work together.

1 Like

yep, thanks, this is exactly the person, of which repo I forked.

Hey,

I left the repository in a bad state - I was trying to fix the “missing icon” issue and as part of that had been trying to use the kde-neon extension and kde content snaps to no avail. If you do want to fork my work, check out the latest update I made yesterday, where I updated to 4.3.x and reverted a few commits.

To answer what’s going on with your error - the error is likely coming from parsing the .desktop file. I use the build stage to replace the automatic definition of the icon (Icon=qbittorrent) with a full path to the icon.

override-build: |
      snapcraftctl build
      sed -i 's|Icon=qbittorrent|Icon=/usr/share/icons/hicolor/192x192/apps/qbittorrent.png|g' $SNAPCRAFT_PART_INSTALL/usr/share/applications/org.qbittorrent.qBittorrent.desktop

I gave up on using kde-neon, especially since it doesn’t support arm64.