snapcraft.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: novnc
  2. base: core18 # the base snap is the execution environment for this snap
  3. version: '@VERSION@'
  4. summary: Open Source VNC client using HTML5 (WebSockets, Canvas)
  5. description: |
  6. Open Source VNC client using HTML5 (WebSockets, Canvas).
  7. noVNC is both a VNC client JavaScript library as well as an
  8. application built on top of that library. noVNC runs well in any
  9. modern browser including mobile browsers (iOS and Android).
  10. grade: stable
  11. confinement: strict
  12. parts:
  13. novnc:
  14. source: .
  15. plugin: dump
  16. organize:
  17. utils/novnc_proxy: /
  18. stage:
  19. - vnc.html
  20. - app
  21. - core/**/*.js
  22. - vendor/**/*.js
  23. - novnc_proxy
  24. stage-packages:
  25. - bash
  26. svc-script:
  27. source: snap/local
  28. plugin: dump
  29. stage:
  30. - svc_wrapper.sh
  31. stage-packages:
  32. - bash
  33. - jq
  34. websockify:
  35. source: https://github.com/novnc/websockify/archive/v0.9.0.tar.gz
  36. plugin: python
  37. stage-packages:
  38. - python3-numpy
  39. hooks:
  40. configure:
  41. plugs: [network, network-bind]
  42. apps:
  43. novnc:
  44. command: ./novnc_proxy
  45. plugs: [network, network-bind]
  46. novncsvc:
  47. command: ./svc_wrapper.sh
  48. daemon: forking
  49. plugs: [network, network-bind]