Skip to content

Commit

Permalink
snap: migrate to gnome-3-38 extension
Browse files Browse the repository at this point in the history
- results in a smaller snap
- glue for desktop related logic is taken care by the extension

Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
  • Loading branch information
sergiusens authored and NeoTheThird committed Feb 4, 2022
1 parent f014d88 commit c7651b7
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,14 @@ base: core20
apps:
ubports-installer:
command: ./app/ubports-installer --no-sandbox
extensions:
- gnome-3-38
plugs:
- home
- unity7
- browser-support
- network
- gsettings
- opengl
- adb-support
- raw-usb
- desktop
- desktop-legacy
- wayland
environment:
"FONTCONFIG_PATH": "$SNAP/etc/fonts"
"FONTCONFIG_FILE": "$SNAP/etc/fonts/fonts.conf"
"XDG_DATA_HOME": "$SNAP/usr/share"
"LD_LIBRARY_PATH": "$SNAP_LIBRARY_PATH:$SNAP/usr/lib/x86_64-linux-gnu/"

parts:
ubports-installer:
Expand All @@ -47,20 +38,7 @@ parts:
- libgconf-2-4
stage-packages:
- libusb-1.0-0
- libnotify4
- libappindicator1
- libxshmfence1
- libxtst6
- libnss3
- libxss1
- fontconfig-config
- gconf2
- libasound2
- libgtk-3-0
- libx11-xcb-dev
- libdrm-common
- libgbm1
- libxcb-dri3-0
override-pull: |
snapcraftctl pull
snapcraftctl set-version `cat $SNAPCRAFT_PROJECT_DIR/package.json | grep version | sed s/' \"version\": \"'//g | sed s/'\",'//g`
Expand Down

0 comments on commit c7651b7

Please sign in to comment.