Joachim M. Giæver 3 years ago
parent
commit
028daa933a
1 changed files with 9 additions and 18 deletions
  1. 9 18
      snap/snapcraft.yaml

+ 9 - 18
snap/snapcraft.yaml

@@ -8,13 +8,19 @@ description: |
 base: core20
 grade: stable
 confinement: strict
-architectures:
-  - build-on: [arm64, ppc64el]
 layout:
   /etc/pip.conf:
     bind-file: $SNAP_DATA/pip.conf
   /etc/openzwave:
     bind: $SNAP/openzwave
+
+slots:
+  lib-hacs:
+    interface: content
+    content: lib-hacs
+    write: 
+      - $SNAP_DATA/custom_components
+
 apps:
   hass:
     command: bin/hass --config $SNAP_DATA
@@ -29,6 +35,7 @@ apps:
       - raw-usb
       # GPIO devices etc.. (e.g RaZberry GPIO hat)
       - physical-memory-control
+
 parts:
   homeassistant:
     plugin: python-wot-plugin
@@ -39,7 +46,6 @@ parts:
       - wheel
       - Cython
       - pip
-        #- bcrypt
     build-packages:
       - python3
       - python3-dev
@@ -72,22 +78,7 @@ parts:
     stage-packages:
       - freeglut3
       - ffmpeg
-      # - libavcodec58
-      # - libavdevice58
-      # - libavfilter7
-      # - libavformat58
-      # - libavutil56
-      # - libffi7
-      # - libglib2.0-0
       - libglu1-mesa
-      # - libjpeg8
-      # - libopenzwave1.5
-      # - libssl1.1
-      # - libswscale5
-      # - libudev1
-      # - libswresample3
-      # - libxml2
-      # - libxslt1.1
       - zlib1g
     requirements:
       - requirements_all.txt