Browse Source

Init commit

Joachim M. Giæver 3 years ago
parent
commit
8066076a1f
2 changed files with 36 additions and 0 deletions
  1. 33 0
      snap/snapcraft.yaml
  2. 3 0
      src/bin/curl

+ 33 - 0
snap/snapcraft.yaml

@@ -0,0 +1,33 @@
+name: home-assistant-toolbox
+base: core20
+version: '0.1' 
+summary: Extend your Home Assistant (home-assistant-snap)
+description: |
+  Toolbox contains executables that extends functionality
+  to you home-assistant-snap installation.
+
+  The following tools are included:
+    - cURL
+
+grade: devel # must be 'stable' to release into candidate/stable channels
+confinement: devmode # use 'strict' once you have the right plugs and slots
+
+apps:
+  curl:
+    command: bin/curl
+
+slots:
+  bin:
+    interface: content
+    content: executables
+    source:
+      read:
+        - $SNAP/bin
+
+parts:
+  home-assistant-toolbox:
+    plugin: dump
+    source: ./src
+    source-type: local
+    stage-packages:
+      - curl

+ 3 - 0
src/bin/curl

@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+
+eval $SNAP/usr/bin/curl $@