Hi All,
I am New to snapcraft and trying to learn the dump plugin, I have created snap that will just print “Hello world!” on console.
My snapcraft.yaml
name: hello-msg
base: core18
version: ‘0.1’
summary: Print hello app
description: | This App will be used to print hello world message.
grade: devel
confinement: devmode
parts:
hello-msg:
source: .
plugin: dump
override-build: |
snapcraftctl build
cd /home/pramod/Practice/hellosnap/
./buildhello.sh
My buildhello.sh
echo “Building Print Hello Msg” echo “” pwd echo “”
cc hello.c printmsg.c -o Hello
cp Hello Output/.
ls -ltr Output
echo “Compilation Done” echo “”
My snap is getting created but I think the hello application is not present in the snap. How to dump the Hello exe in the snap…? I have tried with organize and stages but it didn’t worked for me. may be I have missed something while implementing it.