snapcraft.yaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. name: home-assistant-configurator
  2. base: core20
  3. version: '0.4.0'
  4. summary: Configuration UI for Home Assistant
  5. description: |
  6. The HASS-Configurator is a small webapp (you access it via web browser) that provides a filesystem-browser and text-editor to modify files on the machine the configurator is running on. It has been created to allow easy configuration of Home Assistant. It is powered by Ace editor, which supports syntax highlighting for various code/markup languages. YAML files (the default language for Home Assistant configuration files) will be automatically checked for syntax errors while editing.
  7. Please configure the snap thout `snap set home-assistant-configurator server.*=`,
  8. see `snap get home-assistant-configurator` after installation.
  9. This snap requires the snap `home-assistant-snap`
  10. grade: stable
  11. confinement: strict
  12. apps:
  13. server:
  14. command: bin/hass-configurator -dH $SNAP_DATA/settings.conf
  15. daemon: simple
  16. restart-condition: always
  17. plugs:
  18. - network
  19. - network-bind
  20. - configurations
  21. certs-daemon:
  22. command: bin/certs-daemon
  23. # daemon: oneshot
  24. # restart-condition: always
  25. # timer: 00:00-24:00/287
  26. slots:
  27. - certs
  28. plugs:
  29. - network
  30. - network-bind
  31. slots:
  32. certs:
  33. interface: content
  34. content: certs
  35. write:
  36. - $SNAP_DATA/certs
  37. plugs:
  38. configurations:
  39. interface: content
  40. target: $SNAP_COMMON/configurations
  41. default-provider: home-assistant-snap
  42. hooks:
  43. prepare-slot-certs:
  44. plugs:
  45. - network
  46. - network-bind
  47. parts:
  48. configurator:
  49. plugin: python
  50. source: https://github.com/danielperna84/hass-configurator.git
  51. source-tag: ${SNAPCRAFT_PROJECT_VERSION}
  52. build-environment:
  53. - PYTHONPATH: "/usr/lib/python3/dist-packages"
  54. build-packages:
  55. - python3
  56. - python3-dev
  57. - python3-wheel
  58. - python3-venv
  59. - python3-pip
  60. stage:
  61. - lib64/python3.8
  62. - bin
  63. - include
  64. - lib
  65. - pyvenv.cfg
  66. - settings.conf
  67. - share
  68. override-build: |
  69. snapcraftctl build
  70. cp ${SNAPCRAFT_PART_BUILD}/settings.conf ${SNAPCRAFT_PART_INSTALL}/settings.conf
  71. scripts:
  72. plugin: dump
  73. source: ./scripts
  74. source-type: local
  75. organize:
  76. hooks: snap/hooks
  77. stage-packages:
  78. - uuid
  79. - libossp-uuid16
  80. - libassuan0
  81. - gpg
  82. - gpg-agent