Browsing Chinese (Simplified) translation

50 of 815 results
50.

The pack command packs the given snap-dir as a snap and writes the result to
target-dir. If target-dir is omitted, the result is written to current
directory. If both source-dir and target-dir are omitted, the pack command packs
the current directory.

The default file name for a snap can be derived entirely from its snap.yaml, but
in some situations it's simpler for a script to feed the filename in. In those
cases, --filename can be given to override the default. If this filename is
not absolute it will be taken as relative to target-dir.

When used with --check-skeleton, pack only checks whether snap-dir contains
valid snap metadata and raises an error otherwise. Application commands listed
in snap metadata file, but appearing with incorrect permission bits result in an
error. Commands that are missing from snap-dir are listed in diagnostic
messages.
There are line breaks here. Each one represents a line break. Start a new line in the equivalent position in the translation.

pack 命令将给定的 snap-dir 打包为 snap 并将结果写入 target-dir。如果省略了 target-dir,则结果将写入当前目录。如果 source-dir 和 target-dir 都省略,则 pack 命令将打包当前目录。

snap 的默认文件名可以完全从它的 snap.yaml 中推导出来,但在某些情况下,脚本中输入文件名更简单。在这些情况下,可以使用 --filename 覆盖默认值。如果此文件名不是绝对的,则将其视为相对于 target-dir。

当与 --check-skeleton 一起使用时,pack 检查 snap-dir 是否包含有效的 snap 元数据,否则会引发错误。在 snap 元数据文件中列出的应用程序命令,但出现了错误的权限位,将导致错误。在诊断消息中列出缺少于 snap-dir 的命令。
Translated by Luke Na
Located in cmd/snap/cmd_pack.go:49
50 of 815 results

This translation is managed by Ubuntu Simplified Chinese Translators, assigned by Ubuntu Translators.

You are not logged in. Please log in to work on translations.