The tutorial shows how to build GNU Hello into a snap packages:
But this does not really help, if you have a command, which you can not build with autotools or ant or ....
A complete list can be found here.
So my plan:
- create a bash script "myapp.sh"
- try to build a snap, which contains this file
name: myappInside the myapp directory i created "prime/bin/myapp.sh" and "stage/myapp.sh". For both i changed the execution bits:
summary: My first snap
description: My first snap app
(With only u+x i got "-bash: ./myapp.sh: Permission denied")
chmod uga+xThen i ran
$ snapcraftThis file i transferred to my ubuntu core and installed it with:
"grade" property not specified: defaulting to "stable"
Skipping pull myapp (already ran)
Skipping build myapp (already ran)
Skipping stage myapp (already ran)
Skipping prime myapp (already ran)
Snapping 'myapp' |
$ snap install --dangerous myapp_2.13_amd64.snapAnd:
myapp 2.13 installed
This is myapp.
Other posts around this topic: Snapcraft / Snap on ubuntu core