I am trying to package my app to be able to install it using snap. App is already compiled as executable and has one config file and one certificate file which I package inside the snap.
Once installation is complete I can see everything in /snap/myapp/x1
but as x1 part will be changing after updates I'd like to take out resource files and put them to a more convenient location.
For testing purposes I tied resource files to be pulled from the same folder where my app is running and I found out that I needed to put them to /var/lib/snapd/void
folder for app to work. This does not seem as a good location to start with.
As user will be able to change the config files I'd like to keep them at say $SNAP_COMMON
so it would be great if I could somehow get these files to be moved over to that location during installation. Any thoughts?