I’ve been trying to make my first snap. It’s just a bash script. I’ve followed the directions posted here but I keep facing the following error:
Failed to generate snap metadata: Specified command 'xst.sh' was not found.
Verify the command is correct and for a more deterministic outcome, specify the relative path to the command from the prime directory.
First, make sure that xst.sh is set to executable. Second, you’re not copying it into your snap; your part is plugin: nil which means it won’t do anything. You likely want plugin: dump to copy the file(s) verbatim.
Thanks a lot! That worked. I had another question. My script when run as a simple bash script like ./xst.sh takes three arguments. How can implement it in my snap so that it can be run like xst first_arg second_arg third_arg?
Okay thanks. My script has dependencies on some utilities of ImageMagick suit and some X11 tools. How do I meet these dependencies in my snap? I assume they need to go the parts template, but I have no idea how to implement them.
I’m having trouble locating packages for image and convert commands; they should be available since I’ve already included the ImageMagick as a dependency.