Guest User

snapcraf.yaml

a guest
Jul 14th, 2021
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. name: pyqt5-test # you probably want to 'snapcraft register <name>'
  2. base: core20 # the base snap is the execution environment for this snap
  3. version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
  4. summary: Single-line elevator pitch for your amazing snap # 79 char long summary
  5. description: |
  6. This is my-snap's description. You have a paragraph or two to tell the
  7. most important story about your snap. Keep it under 100 words though,
  8. we live in tweetspace and your description wants to look good in the snap
  9. store.
  10.  
  11. grade: stable # must be 'stable' to release into candidate/stable channels
  12. confinement: devmode # use 'strict' once you have the right plugs and slots
  13.  
  14. apps:
  15. pyqt5-test:
  16. command: bin/desktop-launch python3 $SNAP/main.py
  17. plugs: [home, gsettings, x11, wayland]
  18. environment:
  19. QT_DEBUG_PLUGINS: export QT_DEBUG_PLUGINS=1
  20. QT_QPA_PLATFORMTHEME: gtk2
  21.  
  22. parts:
  23. copy-source-code:
  24. # See 'snapcraft plugins'
  25. plugin: dump
  26. source: .
  27.  
  28. pyqt5-test:
  29. plugin: python
  30. source: .
  31. stage-packages:
  32. - python3-pyqt5
  33. - qtwayland5
  34. - qt5-style-plugins
  35. - libcanberra-gtk-module
  36. - libcanberra-gtk3-module
  37. python-packages:
  38. - PyQt5==5.14.1
  39.  
  40. after: [desktop-qt5]
  41.  
  42.  
  43. desktop-qt5:
  44. source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
  45. source-subdir: qt
  46. plugin: make
  47. make-parameters: ["FLAVOR=qt5"]
  48. build-packages:
  49. - build-essential
  50. - qtbase5-dev
  51. - dpkg-dev
  52. stage-packages:
  53. - libxkbcommon0
  54. - ttf-ubuntu-font-family
  55. - dmz-cursor-theme
  56. - light-themes
  57. - adwaita-icon-theme
  58. - gnome-themes-standard
  59. - shared-mime-info
  60. - libqt5gui5
  61. - libgdk-pixbuf2.0-0
  62. - libqt5svg5 # for loading icon themes which are svg
  63. - try: [appmenu-qt5] # not available on core18
  64. - locales-all
  65. - xdg-user-dirs
  66. - fcitx-frontend-qt5
Add Comment
Please, Sign In to add comment