可以以某种方式构建一个快照,当用户尝试安装它时,该快照也会安装另一个软件包吗?例如,
wget
。谢谢。wget
。谢谢。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: strict # 'strict' confinement means fully confined
parts:
my-part:
plugin: nil
# Include the wget .deb from the Ubuntu package archive
stage-packages: [wget]
apps:
# expose wget to end-users
wget:
command: usr/bin/wget
plugs: [network, home, removable-media]