Joachim M. Giæver 3 years ago
parent
commit
358ac08e8c
2 changed files with 8 additions and 8 deletions
  1. 6 6
      snap/snapcraft.yaml
  2. 2 2
      src/bin/curl

+ 6 - 6
snap/snapcraft.yaml

@@ -9,12 +9,9 @@ description: |
   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
+  (More to come, and feel free to come up with suggestions!)
+grade: devel
+confinement: strict 
 
 slots:
   bin:
@@ -23,6 +20,9 @@ slots:
     source:
       read:
         - $SNAP/bin
+        - $SNAP/etc
+        - $SNAP/lib
+        - $SNAP/usr
 
 parts:
   home-assistant-toolbox:

+ 2 - 2
src/bin/curl

@@ -1,3 +1,3 @@
 #!/usr/bin/env bash
-
-eval $SNAP/usr/bin/curl $@
+LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SNAP/shared-bin/lib/x86_64-linux-gnu:$SNAP/shared-bin/usr/lib/x86_64-linux-gnu
+eval $SNAP/shared-bin/usr/bin/curl $@