From ddf86a84f056dc35209f6391880f86270aef7a24 Mon Sep 17 00:00:00 2001
From: Timotej Ecimovic <timotej.ecimovic@silabs.com>
Date: Sat, 24 Apr 2021 12:19:06 -0400
Subject: [PATCH] Work towards apack.json.

---
 apack.json | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 apack.json

diff --git a/apack.json b/apack.json
new file mode 100644
index 00000000..319ae7a4
--- /dev/null
+++ b/apack.json
@@ -0,0 +1,60 @@
+{
+  "id": "zclConfigurator",
+  "label": "Zigbee Cluster Configurator",
+  "description": "Graphical configuration tool for application and libraries based on Zigbee Cluster Library.",
+  "path": [".", "node_modules/.bin/", "ZAP.app/Contents/MacOS"],
+  "requiredFeatureLevel": "apack.core:8",
+  "featureLevel": 29,
+  "uc.triggerExtension": "zap",
+  "executables": {
+    "zap:win32.x86_64": {
+      "exe": "zap.exe",
+      "optional": true
+    },
+
+    "zap:linux.x86_64": {
+      "exe": "zap",
+      "optional": true
+    },
+
+    "zap:macosx.x86_64": {
+      "exe": "zap.app/Contents/MacOS/zap",
+      "optional": true
+    },
+
+    "zap": {
+      "engine": "node",
+      "optional": true,
+      "exe": "src-script/zap-start.js"
+    }
+  },
+  "functions": {
+    "ui:uc_cli": {
+      "cmd": "$(zap)"
+    },
+    "selfcheck:uc_cli": {
+      "cmd": "$(zap) selfCheck"
+    },
+    "version:uc_cli": {
+      "cmd": "$(zap) --version"
+    },
+    "uc_generate": {
+      "cmd": "$(zap) generate --noUi --noServer -o ${generationOutput} --zcl ${sdkRoot}/app/zcl/zcl-zap.json --generationTemplate ${sdkRoot}/protocol/zigbee/app/framework/gen-template/gen-templates.json --in ${contentFolder}"
+    },
+    "zapHelp": {
+      "cmd": "$(zap) --help"
+    },
+    "zapSelfcheck": {
+      "cmd": "$(zap) selfCheck"
+    },
+    "zapServer": {
+      "cmd": "$(zap) --noUi --showUrl --zcl ${sdkRoot}/app/zcl/zcl-zap.json --generationTemplate ${sdkRoot}/protocol/zigbee/app/framework/gen-template/gen-templates.json --studioHttpPort ${studioHttpPort}"
+    },
+    "zapServerNoSdk": {
+      "cmd": "$(zap) --noUi --showUrl --studioHttpPort ${studioHttpPort}"
+    },
+    "zapFull": {
+      "cmd": "$(zap) --showUrl --zcl ${sdkRoot}/app/zcl/zcl-zap.json"
+    }
+  }
+}
-- 
GitLab