snapcraft.yaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. name: home-assistant-hacs
  2. base: core20
  3. version: '1.0'
  4. summary: Home Assistant Community Store
  5. description: |
  6. Manage (Install, track, upgrade) and discover custom elements for Home Assistant directly from the UI.
  7. **What?*** HACS is a integration that gives the user a powerful UI to handle downloads of custom integrations and plugins.
  8. Highlights of what HACS can do:
  9. - Help you discover new custom elements.
  10. - Help you install (download) new custom elements.
  11. - Help you keep track of your custom elements.
  12. - Manage(Install/Upgrade/Remove)
  13. - Shortcuts to repositories/issue tracker
  14. **Installation**
  15. 1. Go into integrations and add HACS. Home Assistant will now try to install every python-package that HACS depends on.
  16. 2. Step 1 might fail for an unknown reason, but **if so**:
  17. Restart Home Assistant with `sudo snap restart home-assistant-snap` and wait for it to boot up. Go back and continue as described in _step 1._
  18. 3. You should be prompted with some check-boxes that you need to confirm and then a screen to connect to github api.
  19. Wallah! HACS should be up running. :)
  20. **Can't find HACS in the integration list?**
  21. Open up a terminal and issue:
  22. ```
  23. sudo snap connect home-assistant-hacs:components home-assistant-snap:components
  24. ```
  25. HACS should auto-connect, but sometimes it might fail. You also have to do this manually if you are using a self-snapped `home-assistant-snap`.
  26. Please see https://git.giaever.org/joachimmg/home-assistant-hacs#install-from-the-snap-store-recommended for more details.
  27. **UPDATES? Out of date?**
  28. No worries. HACS is managed by HACS and Home Assistant. After installation you will be able to update HACS whenever there is a new update!
  29. license: MIT
  30. grade: stable
  31. confinement: strict
  32. architectures:
  33. - build-on: amd64
  34. - build-on: arm64
  35. - build-on: armhf
  36. - build-on: ppc64el
  37. apps:
  38. install:
  39. command: bin/install
  40. plugs:
  41. - components
  42. - network
  43. plugs:
  44. components:
  45. interface: content
  46. content: components
  47. target: $SNAP_DATA/custom_components
  48. default-provider: home-assistant-snap
  49. hooks:
  50. connect-plug-components:
  51. plugs:
  52. - components
  53. - network
  54. disconnect-plug-components:
  55. plugs: [components]
  56. layout:
  57. /etc/wgetrc:
  58. bind-file: $SNAP/etc/wgetrc
  59. parts:
  60. local:
  61. plugin: dump
  62. source: ./source
  63. source-type: local
  64. organize:
  65. install: bin/install
  66. hooks: snap/hooks
  67. hacs:
  68. plugin: nil
  69. override-pull: |
  70. wget https://get.hacs.xyz -O hacs
  71. override-build: |
  72. mv ${SNAPCRAFT_PART_BUILD}/hacs ${SNAPCRAFT_PART_INSTALL}/hacs
  73. chmod +x ${SNAPCRAFT_PART_INSTALL}/hacs
  74. build-packages:
  75. - wget
  76. stage-packages:
  77. - wget
  78. - unzip