The tutorial shows how to build GNU Hello into a snap packages:
and this tutorial works fine.
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:
version: "2.13"
summary: My first snap
description: My first snap app
confinement: strict
apps:
myapp:
command: myapp.sh
parts:
myapp:
plugin: nil
(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' |
Snapped myapp_2.13_amd64.snap
$ snap install --dangerous myapp_2.13_amd64.snapAnd:
myapp 2.13 installed
d-schroff@localhost:~$ myapp
This is myapp.
Other posts around this topic: Snapcraft / Snap on ubuntu core
No comments:
Post a Comment