snapcraft.yaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. name: home-assistant-hacs
  2. base: core20
  3. version: '1.15.2'
  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. list:
  39. command: bin/app
  40. plugs:
  41. - components
  42. plugs:
  43. components:
  44. interface: content
  45. content: components
  46. target: $SNAP_DATA/custom_components
  47. default-provider: home-assistant-snap
  48. hooks:
  49. post-refresh:
  50. plugs: [components]
  51. connect-plug-components:
  52. plugs: [components]
  53. disconnect-plug-components:
  54. plugs: [components]
  55. parts:
  56. connection:
  57. plugin: dump
  58. source: ./source
  59. source-type: local
  60. organize:
  61. app: bin/app
  62. hooks: snap/hooks
  63. stage-packages:
  64. - rsync
  65. hacs:
  66. plugin: dump
  67. source: https://github.com/hacs/integration.git
  68. source-tag: ${SNAPCRAFT_PROJECT_VERSION}
  69. organize:
  70. custom_components/hacs: hacs
  71. stage:
  72. - hacs