Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: pyqt5-test # you probably want to 'snapcraft register <name>'
- base: core20 # the base snap is the execution environment for this snap
- version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
- summary: Single-line elevator pitch for your amazing snap # 79 char long summary
- description: |
- This is my-snap's description. You have a paragraph or two to tell the
- most important story about your snap. Keep it under 100 words though,
- we live in tweetspace and your description wants to look good in the snap
- store.
- grade: stable # must be 'stable' to release into candidate/stable channels
- confinement: devmode # use 'strict' once you have the right plugs and slots
- apps:
- pyqt5-test:
- command: bin/desktop-launch python3 $SNAP/main.py
- plugs: [home, gsettings, x11, wayland]
- environment:
- QT_DEBUG_PLUGINS: export QT_DEBUG_PLUGINS=1
- QT_QPA_PLATFORMTHEME: gtk2
- parts:
- copy-source-code:
- # See 'snapcraft plugins'
- plugin: dump
- source: .
- pyqt5-test:
- plugin: python
- source: .
- stage-packages:
- - python3-pyqt5
- - qtwayland5
- - qt5-style-plugins
- - libcanberra-gtk-module
- - libcanberra-gtk3-module
- python-packages:
- - PyQt5==5.14.1
- after: [desktop-qt5]
- desktop-qt5:
- source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
- source-subdir: qt
- plugin: make
- make-parameters: ["FLAVOR=qt5"]
- build-packages:
- - build-essential
- - qtbase5-dev
- - dpkg-dev
- stage-packages:
- - libxkbcommon0
- - ttf-ubuntu-font-family
- - dmz-cursor-theme
- - light-themes
- - adwaita-icon-theme
- - gnome-themes-standard
- - shared-mime-info
- - libqt5gui5
- - libgdk-pixbuf2.0-0
- - libqt5svg5 # for loading icon themes which are svg
- - try: [appmenu-qt5] # not available on core18
- - locales-all
- - xdg-user-dirs
- - fcitx-frontend-qt5
Add Comment
Please, Sign In to add comment