~mterry/ubuntu-calculator-app/confined

« back to all changes in this revision

Viewing changes to snapcraft.yaml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2016-11-10 20:06:43 UTC
  • mto: This revision was merged to the branch mainline in revision 312.
  • Revision ID: renato.filho@canonical.com-20161110200643-g43aojfj40uc222r
Using content share to reduce app size when snapped.
Make sure that deskto file has the same name as the snap binary name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
name: ubuntu-calculator-app
2
 
version: 2.1+snap3
 
2
version: 2.3
3
3
summary: Ubuntu Calculator app
4
4
description: The calculator app for all Ubuntu devices.
5
5
confinement: strict
6
 
 
 
6
grade: stable
7
7
 
8
8
apps:
9
 
  ubuntu-calculator-app:
10
 
    command: desktop-launch $SNAP/usr/lib/*/qt5/bin/qmlscene $SNAP/usr/share/ubuntu-calculator-app/ubuntu-calculator-app.qml
11
 
    plugs: [unity7, opengl]
 
9
    ubuntu-calculator-app:
 
10
        command: desktop-launch qmlscene --desktop_file_hint=unity8 $SNAP/usr/share/ubuntu-calculator-app/ubuntu-calculator-app.qml
 
11
        plugs: [opengl, platform, unity7]
 
12
 
 
13
plugs:
 
14
    platform:
 
15
        interface: content
 
16
        content: ubuntu-app-platform1
 
17
        target: ubuntu-app-platform
12
18
 
13
19
parts:
14
 
  calculator:
15
 
    plugin: cmake
16
 
    configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
17
 
    source: .
18
 
    build-packages:
19
 
      - cmake
20
 
      - gettext
21
 
      - intltool
22
 
      - python3
23
 
      - qtbase5-dev
24
 
      - qtdeclarative5-dev
25
 
    stage-packages:
26
 
      - ubuntu-sdk-libs
27
 
      - qtubuntu-desktop
28
 
    snap:
29
 
      - -usr/share/doc
30
 
      - -usr/include
31
 
    after: [desktop/qt5]
 
20
    ubuntu-calculator-app:
 
21
        plugin: cmake
 
22
        configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
 
23
        source: .
 
24
        build-packages:
 
25
            - cmake
 
26
            - gettext
 
27
            - intltool
 
28
            - python3
 
29
            - qtbase5-dev
 
30
            - qtdeclarative5-dev
 
31
        snap:
 
32
          - -usr/share/doc
 
33
          - -usr/include
 
34
        after: [desktop-ubuntu-app-platform]
 
35
 
 
36
    environment:
 
37
        source: snap/
 
38
        plugin: dump