@@ -0,0 +1 @@
+#!/usr/bin/env bash
@@ -0,0 +1,6 @@
+
+cp -rf "$SNAP/hacs" "$SNAP_DATA/custom_components/hacs"
+echo "Copyied data to Home Assistant:"
+echo "From: $SNAP/hacs -"
+echo "To: $SNAP_DATA/custom_components/hacs"
@@ -0,0 +1,4 @@
+#!/bin/sh -e
+rm -rf $SNAP_DATA/custom_components/hacs
+echo "Removed: $SNAP_DATA/custom_components/hacs"
@@ -19,20 +19,34 @@ description: |
grade: devel
confinement: strict
+apps:
+ connected:
+ command: bin/app
+ plugs:
+ - components
plugs:
- lib-hacs:
+ components:
interface: content
- content: lib-hacs
+ content: components
target: $SNAP_DATA/custom_components
default-provider: home-assistant-snap
hooks:
+ install:
+ plugs: [components]
post-refresh:
- plugs: [lib-hacs]
remove:
parts:
+ connection:
+ plugin: dump
+ source: ./source
+ source-type: local
+ organize:
+ app: bin/app
hacs:
plugin: dump
source: https://github.com/hacs/integration.git
@@ -0,0 +1,7 @@
+snapctl is-connected components
+echo "Connected: $?"
+ls -al $SNAP_DATA/custom_components