I’m trying to have
github.com/andreashuber69/net-worth-desktop built on
build.snapcraft.io. The build fails with the following message:
npm run dist
Failed to generate snap metadata: The specified command ‘net-worth’ defined in the app ‘net-worth’ does not exist or is not executable
I can reproduce this with
snapcraft cleanbuild, but I don’t understand exactly what I can do to fix this. Running
npm run dist locally (Ubuntu) produces a .snap file which can be installed and run as expected. I see that snapcraft cleanbuild performs the additional steps “staging” and “priming” (the latter of which fails), what are these good for anyway?
P.S.: I followed https://docs.snapcraft.io/build-snaps/electron on how to make snaps from an electron app.