Snap only shell script and tar.gz file

I have one install script and one my tar.gz file. I am installing the tar.gz file with my install script and my software is running as a service. Is there an example of a yaml file where I can do this?

./install.sh myapp.tar.gz then install requirements packages and make some configurations.

Details depend on what install does, and whether the contents of the tarball are source files to be built or final binary artifacts. Assuming that the tarball and install script are local files, it seems that you could use the dump plugin and override build to run your install script – but make sure it installs under $CRAFT_PART_INSTALL (or $SNAPCRAFT_PART_INSTALL if you’re using base: core20 or earlier).

1 Like