Hello,
Just to show some basics about snaps I copied out an extract from the snapcraft.yaml of the hello.world sample from the SDK and added some comments:
# define how apps & services are exposed to host system
apps:
HelloWorld: #name of your application (binary build)
command: HelloWorld #this will be the command to run the service
plugs: #plugs to connect to interfaces
- network
daemon: simple #declares that your application gets started by the system deamon
passthrough: #restarts the application if it shuts down after 10 sec
restart-condition: always
restart-delay: 10s
#describes how the binary application (from folder ./generated/build) gets packed (dumped) into the snap
parts:
helloworld:
plugin: dump
source: ./generated/build
Please a look into the snpacraft.yaml reference. It describes all the details snapcraft needs to build a snap.
@schwebo wrote:
So i understand, is the a .snap file which is build, contains ALL Libs which are needed, that meand the lib from the dynanamic.linker are alos copies to the snap file !?!?!?!
Yes, this is true. Snaps in general are self contained and therefor have to have all needed dependencies inside.
I hope I could clarify some things. You can share your snapcraft.yaml (with some comments) so we can have a look at your snap build mechanism.
... View more