专栏名称: 阿群1986
目录
相关文章推荐
理想汽车  ·  雪景如画,一眼便是家的颜色 ·  2 天前  
理想汽车  ·  理想超充2025春节充电报告 ·  2 天前  
蔚来  ·  蔚来品牌1月智能驾驶运营报告出炉 ·  2 天前  
防骗大数据  ·  “孙子”的这一通电话,可把奶奶急坏了 ·  2 天前  
小鹏汽车  ·  新站上线|2025年第5周上线自营超充站13座 ·  3 天前  
51好读  ›  专栏  ›  阿群1986

Snapcraft App 开发组件库

阿群1986  · 简书  ·  · 2017-12-21 18:56

正文

https://docs.snapcraft.io/build-snaps/parts
https://wiki.ubuntu.com/snapcraft/parts

Parts

Parts are reusable components that are the main building blocks used to create snaps using Snapcraft. Parts have their own private space and lifecycle. Each part uses a plugin, which tells the part how to behave and what to do with the information inside it. Parts are analogous to a library that you would call in your program. There are three types of parts:

  • Parts that use local files on your machine. For example:

       parts:
         hello:
           plugin: nodejs
             source: .
    
    
  • Parts from online sources, such as git , bzr , a tarball, or any code repository you like. For example:

      parts:
        godd:
         plugin: go
          source: https://github.com/mvo5/godd.git
        gnu-hello:
         plugin: autotools
          source: http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
    
    
  • Parts built and shared by others through the parts repository . For example, using a part for curl defined in this repository:

      parts:
          client:
             plugin: autotools
             source: .
             after: [curl]
    

以下是当前 Ubuntu 官方提供的几个 TPM 2.0 开发组件

origin: https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/tpm2
origin-type: git
maintainer: Canonical System Enablement <[email protected]>
description:
  Part containing utilities to interact with a TPM 2.0 chip being part of
  a computer system.
parts: [tpm2-tools]
origin: https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/tpm2
origin-type: git
maintainer: Canonical System Enablement <[email protected]>
description:
  Implementation of the TPM 2.0 Software Stack (TSS).
  See https://github.com/01org/TPM2.0-TSS for the upstream project
  provided by this part and https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/tpm2/
  for the actual source code of this part.
parts: [tpm2-tss]
origin: https://git.launchpad.net/~checkbox-dev/plainbox-provider-tpm2/+git/plainbox-provider-tpm2-parts
origin-type: git
maintainer: Checkbox Developers <[email protected]>
description:
  Tests to certify the correct functioning of TPM2 devices
parts: [plainbox-provider-tpm2]

TPM 1.2 组件

#origin: https://git.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/tpm
origin: https://git.launchpad.net/~joetalbott/snappy-hwe-snaps/
origin-type: git
maintainer: Canonical System Enablement <[email protected]>
description:
  Part containing utilities to interact with a TPM chip being part of
  a computer system.
parts: [tpm-tools]

OpenSSH 组件

origin: https://github.com/mariogrip/openssh.git
maintainer: Marius Gripsgard <[email protected]>
description:
  OpenSSH is the premier connectivity tool for remote login with the SSH protocol. It encrypts all traffic 
  to eliminate eavesdropping, connection hijacking, and other attacks. In addition, OpenSSH provides a 
  large suite of secure tunneling capabilities, several authentication methods, and sophisticated 
  configuration options.
parts: [openssh]






请到「今天看啥」查看全文