forked from canonical/chip-tool-snap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
47 lines (39 loc) · 980 Bytes
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: chip-tool
summary: Chip Tool Matter Controller
description: Refer to https://snapcraft.io/chip-tool
adopt-info: connectedhomeip
version: "v1.2.0.1+snap"
confinement: strict
grade: stable
license: Apache-2.0
base: core22
architectures:
- build-on: amd64
- build-on: arm64
layout:
/mnt:
bind: $SNAP_COMMON/mnt
parts:
chip-tool:
plugin: matter
matter-tag: "master"
matter-zap-tag: "v2023.11.13"
override-build: |
craftctl default
cd $CRAFT_PART_BUILD/matter
# Build the chip tool
./scripts/examples/gn_build_example.sh examples/chip-tool ./build-examples
mkdir -p $CRAFT_PART_INSTALL/bin
cp build-examples/chip-tool $CRAFT_PART_INSTALL/bin/
apps:
chip-tool:
command: bin/chip-tool
plugs:
- network
- network-bind
- bluez
- avahi-observe
- process-control
environment:
# Replace the path for chip-tool configuration files
TMPDIR: "/mnt"