Skip to content

Commit

Permalink
Remove ZAP sourcing (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz authored Feb 29, 2024
1 parent 5488416 commit 4dc1bf9
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,10 @@ parts:
# set the snap version
craftctl set version=$TAG+snap
zap:
plugin: nil
build-environment:
- ZAP_VERSION: v2023.11.13
build-packages:
- wget
- unzip
override-build: |
if [[ $SNAP_ARCH == "arm64" ]]; then
# Download and unzip the prebuilt ZAP (Zigbee Cluster Library configuration tool and generator) binary for the ARM64 architecture
wget --no-verbose https://github.com/project-chip/zap/releases/download/$ZAP_VERSION/zap-linux-$SNAP_ARCH.zip
unzip -o zap-linux-$SNAP_ARCH.zip
# Define the environment needed for the app build
echo "export ZAP_INSTALL_PATH=$PWD" >> env
fi
chip-tool:
after: [connectedhomeip, zap]
after: [connectedhomeip]
plugin: nil
build-environment:
- ZAP_ENV: ../../zap/build/env
override-build: |
# Setup ZAP paths; installed in the corresponding part
test -f $ZAP_ENV && source $ZAP_ENV
mkdir -p $CRAFT_PART_INSTALL/bin
Expand Down

0 comments on commit 4dc1bf9

Please sign in to comment.