summaryrefslogtreecommitdiff
path: root/snap/snapcraft.yaml
blob: e1cad43442d4dfcbc68b2efba17ca9df29863865 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: whatsie
version: git
summary: Qt Based WhatsApp Client
description: |
  Fast Light weight WhatsApp Client based on Qt's WebEngine, With lots of settings and packed goodies. 
grade: stable
confinement: strict
icon: snap/gui/icon.png
base: core18

architectures:
  - build-on: amd64
    run-on: amd64

apps:
  whatsie:
    command: desktop-launch whatsie
    environment:
       DISABLE_WAYLAND: 1
    desktop: usr/share/applications/whatsie.desktop
    plugs:
        - browser-support
        - camera
        - desktop
        - desktop-legacy
        - gsettings
        - home
        - opengl
        - audio-playback
        - audio-record
        - removable-media
        - screen-inhibit-control
        - unity7
        - x11
        - network
        - wayland
        - hardware-observe #might help geoclue & qtpositioning
        - network-observe  #might help geoclue & qtpositioning
        - network-bind  #might help geoclue & qtpositioning
        #- upower-observe
        #- avahi-observe
        #- u2f-devices
        #- hostname-control
        #- mount-observe
        #- network-control

plugs:
  gsettings:
  gtk-3-themes:
    interface: content
    target: $SNAP/data-dir/themes
    default-provider: gtk-common-themes
  icon-themes:
    interface: content
    target: $SNAP/data-dir/icons
    default-provider: gtk-common-themes
  sound-themes:
    interface: content
    target: $SNAP/data-dir/sounds
    default-provider: gtk-common-themes
  qt513:
    interface: content
    target: $SNAP/qt513
    default-provider: qt513

parts:
   snap-launcher:
     plugin: dump
     source: snap_launcher/
     override-build: |
            snapcraftctl build
            sed -i 's|Icon=.*|Icon=${SNAP}/meta/gui/icon.png|g' ${SNAPCRAFT_PART_SRC}/whatsie.desktop
            mkdir -p ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/
            cp -rf ${SNAPCRAFT_PART_SRC}/whatsie.desktop ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/whatsie.desktop