Skip to content

Instantly share code, notes, and snippets.

@sergiusens
Created June 29, 2020 16:30
Show Gist options
  • Save sergiusens/6e595d261ce2862974aff9f109b3f79c to your computer and use it in GitHub Desktop.
Save sergiusens/6e595d261ce2862974aff9f109b3f79c to your computer and use it in GitHub Desktop.

Help

snapcraft help
Usage: snapcraft [OPTIONS] COMMAND [ARGS]...

  Snapcraft is a delightful packaging tool.

Options:
  --version    Show the version and exit.
  -d, --debug
  -h, --help   Show this message and exit.

Commands:
  build              Build artifacts defined for a part.
  clean              Remove a part's assets.
  close              Close <channel> for <snap-name>.
  create-key         Create a key to sign assertions.
  expand-extensions  Display snapcraft.yaml with all extensions applied.
  export-login       Save login configuration for a store account in FILE.
  extension          Show contents of extension.
  gated              Get the list of snaps and revisions gating a snap.
  help               Obtain help for a certain topic, plugin or command.
  init               Initialize a snapcraft project.
  list               List snap names registered or shared with you.
  list-extensions    List available extensions.
  list-keys          List the keys available to sign assertions.
  list-plugins       List the available plugins that handle different types...
  list-revisions     Get the history on the store for <snap-name>.
  login              Login with your Ubuntu One e-mail address and password.
  logout             Clear session credentials.
  pack               Create a snap from a directory holding a valid snap.
  prime              Final copy and preparation for the snap.
  pull               Download or retrieve artifacts defined for a part.
  register           Register <snap-name> with the store.
  register-key       Register a key with the store to sign assertions.
  release            Release <snap-name> on <revision> to the selected
                     store...

  sign-build         Sign a built snap file and assert it using the...
  snap               Create a snap.
  stage              Stage the part's built artifacts into the common...
  status             Get the status on the store for <snap-name>.
  try                Try a snap on the host, priming if necessary.
  upload             Upload <snap-file> to the store.
  upload-metadata    Upload metadata from <snap-file> to the store.
  validate           Validate a gated snap.
  version            Obtain snapcraft's version number.
  whoami             Returns your login information relevant to the store.

For more help, use:
    snapcraft help topics
    snapcraft help <topic>
    snapcraft help <plugin-name>
    snapcraft help <command-name>

Store

List

snapcraft list | grep 'black\|^Name'
Name                     Since                 Visibility    Price    Notes
black                    2018-07-15T19:13:54Z  public        -        -

Status

snapcraft status black
Track    Arch     Channel    Version                  Revision
latest   amd64    stable     -                        -
                  candidate  -                        -
                  beta       19.10b0                  92
                  edge       19.10b0+git123.g2471b92  103
         arm64    stable     -                        -
                  candidate  -                        -
                  beta       19.10b0                  93
                  edge       19.10b0+git123.g2471b92  106
         armhf    stable     -                        -
                  candidate  -                        -
                  beta       19.10b0                  94
                  edge       19.10b0+git123.g2471b92  105
         i386     stable     -                        -
                  candidate  -                        -
                  beta       19.3b0+git55.g1fbf725    9
                  edge       19.10b0+git120.g6ebdc5a  85
         ppc64el  stable     -                        -
                  candidate  -                        -
                  beta       19.10b0                  95
                  edge       19.10b0+git123.g2471b92  104
         s390x    stable     -                        -
                  candidate  -                        -
                  beta       19.10b0                  96
                  edge       19.10b0+git123.g2471b92  102

Release

snapcraft release black 96 beta/test
Track    Arch    Channel    Version                  Revision    Expires at
latest   s390x   stable     -                        -
                 candidate  -                        -
                 beta       19.10b0                  96
                 edge       19.10b0+git123.g2471b92  102
                 beta/test  19.10b0                  96          2020-07-29T15:35:25Z

Close

snapcraft close black beta/test
Track    Arch     Channel    Version                  Revision
latest   amd64    stable     -                        -
                  candidate  -                        -
                  beta       19.10b0                  92
                  edge       19.10b0+git123.g2471b92  103
         arm64    stable     -                        -
                  candidate  -                        -
                  beta       19.10b0                  93
                  edge       19.10b0+git123.g2471b92  106
         armhf    stable     -                        -
                  candidate  -                        -
                  beta       19.10b0                  94
                  edge       19.10b0+git123.g2471b92  105
         i386     stable     -                        -
                  candidate  -                        -
                  beta       19.3b0+git55.g1fbf725    9
                  edge       19.10b0+git120.g6ebdc5a  85
         ppc64el  stable     -                        -
                  candidate  -                        -
                  beta       19.10b0                  95
                  edge       19.10b0+git123.g2471b92  104
         s390x    stable     -                        -
                  candidate  -                        -
                  beta       19.10b0                  96
                  edge       19.10b0+git123.g2471b92  102

The beta/test channel is now closed.

Revisions

snapcraft revisions black
Rev.    Uploaded              Arch     Version                  Channels
106     2020-06-25T07:16:23Z  arm64    19.10b0+git123.g2471b92  edge*
105     2020-06-25T07:13:17Z  armhf    19.10b0+git123.g2471b92  edge*
104     2020-06-25T07:11:36Z  ppc64el  19.10b0+git123.g2471b92  edge*
103     2020-06-25T07:08:13Z  amd64    19.10b0+git123.g2471b92  edge*
102     2020-06-25T07:08:12Z  s390x    19.10b0+git123.g2471b92  edge*
101     2020-06-21T07:06:20Z  arm64    19.10b0+git122.gf90f50a  edge
100     2020-06-21T07:06:16Z  armhf    19.10b0+git122.gf90f50a  edge
99      2020-06-21T07:06:13Z  ppc64el  19.10b0+git122.gf90f50a  edge
98      2020-06-21T07:01:12Z  s390x    19.10b0+git122.gf90f50a  edge
97      2020-06-21T07:00:14Z  amd64    19.10b0+git122.gf90f50a  edge
96      2020-06-19T22:24:40Z  s390x    19.10b0                  beta*, beta/test
95      2020-06-19T22:24:00Z  ppc64el  19.10b0                  beta*
94      2020-06-19T22:21:42Z  armhf    19.10b0                  beta*
93      2020-06-19T22:21:03Z  arm64    19.10b0                  beta*
92      2020-06-19T22:18:38Z  amd64    19.10b0                  beta*
91      2020-06-19T21:47:24Z  arm64    19.10b0+git121.gd3cc633  edge
90      2020-06-19T21:42:14Z  ppc64el  19.10b0+git121.gd3cc633  edge
89      2020-06-19T21:42:14Z  armhf    19.10b0+git121.gd3cc633  edge
88      2020-06-19T21:37:11Z  s390x    19.10b0+git121.gd3cc633  edge
87      2020-06-19T21:36:12Z  amd64    19.10b0+git121.gd3cc633  edge
86      2020-06-18T06:54:01Z  amd64    19.10b0+git120.g6ebdc5a  edge
85      2020-06-18T06:53:57Z  i386     19.10b0+git120.g6ebdc5a  edge*
84      2020-06-16T06:54:51Z  amd64    19.10b0+git118.gea03b6c  edge
83      2020-06-16T06:52:14Z  i386     19.10b0+git118.gea03b6c  edge
82      2020-06-04T07:11:22Z  amd64    19.10b0+git115.g88d12f8  edge
81      2020-06-04T07:11:10Z  i386     19.10b0+git115.g88d12f8  edge
80      2020-06-02T06:54:19Z  i386     19.10b0+git114.gfcf9796  edge
79      2020-06-02T06:54:16Z  amd64    19.10b0+git114.gfcf9796  edge
78      2020-05-28T06:59:13Z  i386     19.10b0+git112.g3461338  edge
77      2020-05-28T06:59:14Z  amd64    19.10b0+git112.g3461338  edge
76      2020-05-26T07:04:14Z  i386     19.10b0+git111.g9171535  edge
75      2020-05-26T07:04:14Z  amd64    19.10b0+git111.g9171535  edge
74      2020-05-24T07:03:18Z  amd64    19.10b0+git109.g0196437  edge
73      2020-05-24T07:00:33Z  i386     19.10b0+git109.g0196437  edge
72      2020-05-22T08:27:21Z  i386     19.10b0+git104.ge6934fd  edge
71      2020-05-22T08:26:12Z  amd64    19.10b0+git104.ge6934fd  edge
70      2020-05-20T07:07:45Z  amd64    19.10b0+git100.gb0f3798  edge
69      2020-05-20T07:07:40Z  i386     19.10b0+git100.gb0f3798  edge
68      2020-05-18T07:08:16Z  i386     19.10b0+git99.gf62f1dd   edge
67      2020-05-18T07:08:16Z  amd64    19.10b0+git99.gf62f1dd   edge
66      2020-05-16T06:58:14Z  i386     19.10b0+git92.gc7da348   edge
65      2020-05-16T06:57:12Z  amd64    19.10b0+git92.gc7da348   edge
64      2020-05-14T06:52:42Z  i386     19.10b0+git91.g45c98cf   edge
63      2020-05-14T06:52:42Z  amd64    19.10b0+git91.g45c98cf   edge
62      2020-05-12T07:18:15Z  i386     19.10b0+git90.g2432309   edge
61      2020-05-12T07:15:31Z  amd64    19.10b0+git90.g2432309   edge
60      2020-04-17T03:36:14Z  i386     19.10b0+git50.g8654e8d   edge
59      2020-04-17T03:35:20Z  amd64    19.10b0+git50.g8654e8d   edge
58      2020-04-12T04:11:21Z  amd64    19.10b0+git49.gaf7105f   edge
57      2020-04-12T04:11:21Z  i386     19.10b0+git49.gaf7105f   edge
56      2020-04-05T05:33:15Z  i386     19.10b0+git48.g959848c   edge
55      2020-04-05T05:32:31Z  amd64    19.10b0+git48.g959848c   edge
54      2020-03-29T10:30:40Z  i386     19.10b0+git47.g9ed2542   edge
53      2020-03-29T10:30:40Z  amd64    19.10b0+git47.g9ed2542   edge
52      2020-03-27T08:37:00Z  amd64    19.10b0+git44.g453ad95   edge
51      2020-03-27T08:36:56Z  i386     19.10b0+git44.g453ad95   edge
50      2020-03-17T16:42:31Z  i386     19.10b0+git43.g991f190   edge
49      2020-03-17T16:42:18Z  amd64    19.10b0+git43.g991f190   edge
48      2020-03-12T20:25:28Z  amd64    19.10b0+git40.g729f2d8   edge
47      2020-03-12T20:24:21Z  i386     19.10b0+git40.g729f2d8   edge
46      2020-03-11T01:26:55Z  amd64    19.10b0+git39.g3ac97a3   edge
45      2020-03-11T01:26:14Z  i386     19.10b0+git39.g3ac97a3   edge
44      2020-03-05T15:46:54Z  amd64    19.10b0+git36.g5b552fa   edge
43      2020-03-05T15:46:25Z  i386     19.10b0+git36.g5b552fa   edge
42      2020-03-03T12:50:20Z  amd64    19.10b0+git27.gbbe5ae7   edge
41      2020-03-03T12:47:02Z  i386     19.10b0+git27.gbbe5ae7   edge
40      2019-09-17T22:22:18Z  amd64    19.3b0+git83.g0c44220    edge
39      2019-09-17T22:22:18Z  i386     19.3b0+git83.g0c44220    edge
38      2019-09-05T09:24:16Z  i386     19.3b0+git82.gae5588c    edge
37      2019-09-05T09:22:12Z  amd64    19.3b0+git82.gae5588c    edge
36      2019-09-04T08:23:39Z  i386     19.3b0+git81.gc4d2db4    edge
35      2019-09-04T08:22:40Z  amd64    19.3b0+git81.gc4d2db4    edge
34      2019-08-28T03:19:15Z  amd64    19.3b0+git80.g3dc461a    -
33      2019-08-28T03:19:15Z  i386     19.3b0+git80.g3dc461a    edge
32      2019-08-28T03:17:20Z  amd64    19.3b0+git80.g3dc461a    edge
31      2019-08-28T03:17:13Z  i386     19.3b0+git80.g3dc461a    edge
30      2019-08-21T19:46:13Z  amd64    19.3b0+git79.gc9689b8    edge
29      2019-08-13T15:48:34Z  amd64    19.3b0+git77.g40e8b3a    edge
28      2019-08-13T15:47:13Z  i386     19.3b0+git77.g40e8b3a    edge
27      2019-08-09T11:17:32Z  i386     19.3b0+git76.gbd0ab3c    edge
26      2019-08-09T11:17:19Z  amd64    19.3b0+git76.gbd0ab3c    edge
25      2019-07-25T01:26:15Z  amd64    19.3b0+git66.geb5f84e    edge
24      2019-07-25T01:26:15Z  i386     19.3b0+git66.geb5f84e    edge
23      2019-07-24T00:17:27Z  i386     19.3b0+git63.gffa676c    edge
22      2019-07-24T00:17:16Z  amd64    19.3b0+git63.gffa676c    edge
21      2019-07-22T22:16:21Z  i386     19.3b0+git62.g77b6ed1    edge
20      2019-07-22T22:16:20Z  amd64    19.3b0+git62.g77b6ed1    edge
19      2019-07-16T19:18:56Z  i386     19.3b0+git61.g90d205d    edge
18      2019-07-16T19:18:48Z  amd64    19.3b0+git61.g90d205d    edge
17      2019-07-01T16:21:20Z  i386     19.3b0+git60.gf3bb22a    edge
16      2019-07-01T16:21:14Z  amd64    19.3b0+git60.gf3bb22a    edge
15      2019-06-29T21:24:14Z  i386     19.3b0+git59.gb073c9a    edge
14      2019-06-29T21:22:14Z  amd64    19.3b0+git59.gb073c9a    edge
13      2019-06-28T19:21:46Z  i386     19.3b0+git58.g7d213c6    edge
12      2019-06-28T19:21:46Z  amd64    19.3b0+git58.g7d213c6    edge
11      2019-06-25T17:41:46Z  i386     19.3b0+git57.g9d9f96a    edge
10      2019-06-25T17:41:40Z  amd64    19.3b0+git57.g9d9f96a    edge
9       2019-06-16T16:22:20Z  i386     19.3b0+git55.g1fbf725    edge, beta*
8       2019-06-16T16:22:12Z  amd64    19.3b0+git55.g1fbf725    edge, beta
7       2019-06-15T06:27:56Z  i386     19.3b0+git52.g9394de1    edge
6       2019-06-15T06:27:58Z  amd64    19.3b0+git52.g9394de1    edge
5       2019-06-12T21:04:22Z  amd64    19.3b0+git51.g1bbb01b    edge
4       2019-06-12T21:04:21Z  i386     19.3b0+git51.g1bbb01b    edge
3       2019-06-12T21:02:14Z  i386     19.3b0+git51.g1bbb01b    edge
2       2019-06-12T21:01:23Z  amd64    19.3b0+git51.g1bbb01b    edge
1       2018-07-15T19:14:38Z  amd64    18.6b4                   edge

Who Am I

snapcraft whoami
email:        [email protected]
developer-id: pMLNwd28ezFdozetvrAOlLj3UqC9HKpe

Logout

snapcraft logout
Credentials cleared.

Login

snapcraft login
Enter your Ubuntu One e-mail address and password.
If you do not have an Ubuntu One account, you can create one at https://snapcraft.io/account
Email: [email protected]
Password:
Second-factor auth: 555510

Login successful.

Extensions

List Extensions

snapcraft extensions
Extension name    Supported bases
----------------  -----------------
gnome-3-28        core18
gnome-3-34        core18
kde-neon          core18

Extensions

snapcraft extension gnome-3-34
This extension eases creation of snaps that integrate with GNOME 3.34.

At build time it ensures the right build dependencies are setup and for the
runtime it ensures the application is run in an environment catered for GNOME
applications.

It configures each application with the following plugs:

- GTK3 Themes.
- Common Icon Themes.
- Common Sound Themes.
- The GNOME runtime libraries and utilities corresponding to 3.34.

For easier desktop integration, it also configures each application entry with
these additional plugs:

- desktop (https://snapcraft.io/docs/desktop-interface)
- desktop-legacy (https://snapcraft.io/docs/desktop-legacy-interface)
- gsettings (https://snapcraft.io/docs/gsettings-interface)
- wayland (https://snapcraft.io/docs/wayland-interface)
- x11 (https://snapcraft.io/docs/x11-interface)

Expand Expensions

For:

cat snap/snapcraft.yaml
name: digikam
base: core18

version: '7.0.0-beta3'
adopt-info: digikam

grade: devel
confinement: strict

apps:
  digikam:
    environment:
      DK_PLUGIN_PATH: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/qt5/plugins/digikam"
    command: usr/bin/digikam
    common-id: org.kde.digikam.desktop
    extensions:
    - kde-neon
    plugs:
    - browser-support
    - camera
    - home
    - mount-observe
    - network
    - network-bind
    - opengl
    - pulseaudio
    - removable-media
    - udisks2

layout:
  /usr/share/marble:
    symlink: $SNAP/usr/share/marble

parts:
  opencv:
    source: https://github.com/opencv/opencv/archive/3.4.9.zip
    source-subdir: opencv-3.4.9
    plugin: cmake
    configflags:
      - -DCMAKE_INSTALL_PREFIX=/
    prime:
      - -include
  marble:
    source: git://anongit.kde.org/marble
    source-type: git
    plugin: cmake
    build-packages:
      - docbook-xml
      - docbook-xsl 
    build-snaps:
      - kde-frameworks-5-core18-sdk
    configflags:
      - -DCMAKE_BUILD_TYPE=Release
      - -DCMAKE_INSTALL_PREFIX=/
      - -DWITH_KF5=TRUE
      - -Wno-dev
  digikam:
    after: [marble, opencv]
    source: https://download.kde.org/unstable/digikam/digikam-$SNAPCRAFT_PROJECT_VERSION.tar.xz
    source-checksum: "sha256/97b2f768674afaaca6feb6e661d5c8fc6b88b08f4d4bbab8a6bcc94c19914893"
    plugin: cmake
    stage-packages:
      - libexif12
      - libgphoto2-6
      - libgphoto2-port12
      - libjpeg8
      - libjpeg-turbo8
      - liblensfun1
      - liblqr-1-0
      - libltdl7
      - libtbb2
    build-packages:
      - bison
      - ccache
      - doxygen
      - g++
      - libboost-graph-dev
      - libegl1-mesa-dev
      - libeigen3-dev
      - libexpat1-dev
      - libfl-dev
      - libglib2.0-dev
      - libjpeg-dev
      - liblensfun-dev
      - libmagickcore-dev
      - libpng-dev
      - libsane-dev
      - libsqlite3-dev
      - libtiff-dev
      - libxslt1-dev
      - ninja-build
    build-snaps:
      - kde-frameworks-5-core18-sdk
    build-environment:
      - PATH: "/usr/lib/ccache:$PATH"
    configflags:
      - -GNinja
      - -DCMAKE_INSTALL_PREFIX=/usr
      - -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
      - -DBUILD_TESTING=OFF
      - -DDIGIKAMSC_CHECKOUT_PO=OFF
      - -DDIGIKAMSC_CHECKOUT_DOC=OFF
      - -DDIGIKAMSC_COMPILE_PO=OFF
      - -DDIGIKAMSC_COMPILE_DOC=ON
      - -DDIGIKAMSC_COMPILE_DIGIKAM=ON
      - -DENABLE_KFILEMETADATASUPPORT=OFF
      - -DENABLE_AKONADICONTACTSUPPORT=OFF
      - -DENABLE_MYSQLSUPPORT=OFF
      - -DENABLE_INTERNALMYSQL=OFF
      - -DENABLE_MEDIAPLAYER=OFF
      - -DENABLE_LCMS2=ON
      - -DDIGIKAMSC_USE_PRIVATE_KDEGRAPHICS=OFF
      - -DENABLE_DBUS=ON
      - -DENABLE_APPSTYLES=ON
      - -DENABLE_QWEBENGINE=OFF
      - -DOpenCV_DIR=$SNAPCRAFT_STAGE/share/OpenCV
      - -DENABLE_FACESENGINE_DNN=ON
      - -Wno-dev
    parse-info:
      - usr/share/metainfo/org.kde.digikam.appdata.xml
    override-build: |
      snapcraftctl build
      pushd "${SNAPCRAFT_PART_INSTALL}/usr/share/icons/hicolor/scalable/apps"
      gzip -d -c digikam.svgz > digikam.svg
      popd
      sed -i "${SNAPCRAFT_PART_INSTALL}/usr/share/applications/org.kde.digikam.desktop" -e 's|Icon=digikam$|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/digikam.svg|'
snapcraft expand-extensions
name: digikam
base: core18
version: 7.0.0-beta3
adopt-info: digikam
grade: devel
confinement: strict
apps:
  digikam:
    environment:
      DK_PLUGIN_PATH: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/qt5/plugins/digikam
    command: usr/bin/digikam
    common-id: org.kde.digikam.desktop
    plugs:
    - desktop
    - desktop-legacy
    - wayland
    - x11
    - browser-support
    - camera
    - home
    - mount-observe
    - network
    - network-bind
    - opengl
    - pulseaudio
    - removable-media
    - udisks2
    command-chain:
    - snap/command-chain/desktop-launch
layout:
  /usr/share/marble:
    symlink: $SNAP/usr/share/marble
parts:
  opencv:
    source: https://github.com/opencv/opencv/archive/3.4.9.zip
    source-subdir: opencv-3.4.9
    plugin: cmake
    configflags:
    - -DCMAKE_INSTALL_PREFIX=/
    prime:
    - -include
  marble:
    source: git://anongit.kde.org/marble
    source-type: git
    plugin: cmake
    build-packages:
    - docbook-xml
    - docbook-xsl
    build-snaps:
    - kde-frameworks-5-core18-sdk
    configflags:
    - -DCMAKE_BUILD_TYPE=Release
    - -DCMAKE_INSTALL_PREFIX=/
    - -DWITH_KF5=TRUE
    - -Wno-dev
  digikam:
    after:
    - marble
    - opencv
    source: https://download.kde.org/unstable/digikam/digikam-$SNAPCRAFT_PROJECT_VERSION.tar.xz
    source-checksum: sha256/97b2f768674afaaca6feb6e661d5c8fc6b88b08f4d4bbab8a6bcc94c19914893
    plugin: cmake
    stage-packages:
    - libexif12
    - libgphoto2-6
    - libgphoto2-port12
    - libjpeg8
    - libjpeg-turbo8
    - liblensfun1
    - liblqr-1-0
    - libltdl7
    - libtbb2
    build-packages:
    - bison
    - ccache
    - doxygen
    - g++
    - libboost-graph-dev
    - libegl1-mesa-dev
    - libeigen3-dev
    - libexpat1-dev
    - libfl-dev
    - libglib2.0-dev
    - libjpeg-dev
    - liblensfun-dev
    - libmagickcore-dev
    - libpng-dev
    - libsane-dev
    - libsqlite3-dev
    - libtiff-dev
    - libxslt1-dev
    - ninja-build
    build-snaps:
    - kde-frameworks-5-core18-sdk
    build-environment:
    - PATH: /usr/lib/ccache:$PATH
    configflags:
    - -GNinja
    - -DCMAKE_INSTALL_PREFIX=/usr
    - -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
    - -DBUILD_TESTING=OFF
    - -DDIGIKAMSC_CHECKOUT_PO=OFF
    - -DDIGIKAMSC_CHECKOUT_DOC=OFF
    - -DDIGIKAMSC_COMPILE_PO=OFF
    - -DDIGIKAMSC_COMPILE_DOC=ON
    - -DDIGIKAMSC_COMPILE_DIGIKAM=ON
    - -DENABLE_KFILEMETADATASUPPORT=OFF
    - -DENABLE_AKONADICONTACTSUPPORT=OFF
    - -DENABLE_MYSQLSUPPORT=OFF
    - -DENABLE_INTERNALMYSQL=OFF
    - -DENABLE_MEDIAPLAYER=OFF
    - -DENABLE_LCMS2=ON
    - -DDIGIKAMSC_USE_PRIVATE_KDEGRAPHICS=OFF
    - -DENABLE_DBUS=ON
    - -DENABLE_APPSTYLES=ON
    - -DENABLE_QWEBENGINE=OFF
    - -DOpenCV_DIR=$SNAPCRAFT_STAGE/share/OpenCV
    - -DENABLE_FACESENGINE_DNN=ON
    - -Wno-dev
    parse-info:
    - usr/share/metainfo/org.kde.digikam.appdata.xml
    override-build: |
      snapcraftctl build
      pushd "${SNAPCRAFT_PART_INSTALL}/usr/share/icons/hicolor/scalable/apps"
      gzip -d -c digikam.svgz > digikam.svg
      popd
      sed -i "${SNAPCRAFT_PART_INSTALL}/usr/share/applications/org.kde.digikam.desktop" -e 's|Icon=digikam$|Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/digikam.svg|'
  kde-neon-extension:
    build-packages:
    - g++
    plugin: make
    source: $SNAPCRAFT_EXTENSIONS_DIR/desktop
    source-subdir: kde-neon
plugs:
  icon-themes:
    default-provider: gtk-common-themes
    interface: content
    target: $SNAP/data-dir/icons
  kde-frameworks-5-plug:
    content: kde-frameworks-5-core18-all
    default-provider: kde-frameworks-5-core18
    interface: content
    target: $SNAP/kf5
  sound-themes:
    default-provider: gtk-common-themes
    interface: content
    target: $SNAP/data-dir/sounds
environment:
  SNAP_DESKTOP_RUNTIME: $SNAP/kf5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment