Я полный новичок и, кажется, пропустил какой-то важный раздел в документах, но скажем, у меня есть эти файлы:
$ tree
.
├── snap
│ └── snapcraft.yaml
└── yolo
└── test.txt
и содержимое snapcraft.yaml
являются:
name: my-snap-name # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
This is my-snap's description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
parts:
my-part:
# See 'snapcraft plugins'
plugin: dump
source: yolo
Тогда я должен запустить команду snapcraft
в корневом каталоге этих двух каталогов и получить файл Snap my-snap-name_0.1_amd64.snap
, который я затем можно перейти к проверке с помощью unsquashfs -l *.snap
, и я должен увидеть файл test.txt
где-то в нем.
А разве нельзя? Что я не понимаю?