I’m new to snap and am building my first package for an application called ‘brouwhulp’, which contains recipies and information for brewing beer at home. It has been packaged in a .deb file, targeted at Ubuntu around 2015 so I used the ‘core’ base, which seems to contain all packages needed. I had to use ‘classic’ confinement, or all fonts would be missing from the QT4 application.
My problem is that after building, /usr/share/brouwhulpdata does not exist and that crashes the application.
name: brouwhulp version: "22.214.171.124" summary: Met BrouwHulp kun je recepten ontwikkelen, documenteren en uitwisselen. description: | @todo confinement: classic base: core grade: stable parts: brouwhulp: plugin: dump source: http://wittepaard.roodetoren.nl/phocadownload/userupload/brouwhulp_$SNAPCRAFT_PROJECT_VERSION_amd64.deb source-type: deb stage-packages: - libqtwebkit4 - libqtgui4 - libqt4-network - libqtcore4 - libqt4pas5 - libgstreamer0.10-0 - libgstreamer-plugins-base0.10-0 - libaudio2 - libpng12-0 - libopenal1 - libopenal-data - libopenal-dev - libalut0 - libfann2 - libfann-dev layout: /usr/share/brouwhulpdata: symlink: $SNAP/usr/share/brouwhulpdata apps: brouwhulp: command: usr/bin/brouwhulp desktop: usr/share/applications/brouwhulp.desktop plugs: - cups-control - desktop - desktop-legacy - wayland - unity7 - home - network - opengl - audio-playback - pulseaudio
It must be something really simple I’m missing, can anyone point me in the right direction?