I’m trying to build a snap for BloodHound (the single page Javascript web application part). Here is the current snapcraft.yaml:
name: bloodhound
version: 1.5.2
summary: Six Degrees of Domain Admin
description: |
$ bloodhound
grade: devel
confinement: strict
apps:
bloodhound-app:
command: desktop-launch $SNAP/BloodHound-linux-x64/BloodHound
plugs: [network, home]
parts:
bloodhound-app:
plugin: nodejs
source: .
node-packages:
- electron-packager
npm-run:
- linuxbuild
node-engine: 8.11.1
stage-packages:
- libx11-6
- libxau6
- libxext6
- libxcb1
- libxtst6
- libxss1
# - libgtk2.0-0
organize:
lib/node_modules/bloodhound/BloodHound-linux-x64: BloodHound-linux-x64
stage:
- BloodHound-linux-x64
prime:
- BloodHound-linux-x64
- -BloodHound-linux-x64/cli.js
- -BloodHound-linux-x64/npm-cli.js
- -BloodHound-linux-x64/npx-cli.js
after: [desktop-gtk2]
The build goes OK, but when I install the snap and try to launch it, I get this error:
$ bloodhound.bloodhound-app
/snap/bloodhound/x2/BloodHound-linux-x64/BloodHound: error while loading shared libraries: libXtst.so.6: cannot open shared object file: No such file or directory
The thing is that I also tried to build it with:
after: [desktop-gtk3]
And then the error was:
$ bloodhound.bloodhound-app
/snap/bloodhound/x1/BloodHound-linux-x64/BloodHound: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory
And it both cases the application starts if I execute it directly:
$ /snap/bloodhound/x1/BloodHound-linux-x64/BloodHound
So I’m kind of lost…any ideas? Should I be using the gnome-3-26-16-04
part or something?