project-chip / zap

ZAP stands for ZCL Advanced Platform. It is used to configure clusters, attributes and other entities for Matter and ZigbeePro applications.
Apache License 2.0
127 stars 81 forks source link

Include Steps To "development-instructions.md" For Building "zap-cli" #983

Open vindicatorr opened 1 year ago

vindicatorr commented 1 year ago

References: https://github.com/project-chip/zap/blob/master/docs/development-instructions.md Steps: https://github.com/project-chip/zap/issues/977#issuecomment-1487387514

Current method partially yoinked from https://github.com/project-chip/zap/blob/master/.github/workflows/release.yml#L220

Result: Every run of zap-cli: Could not retrieve version from .version.json

EDIT0: A quick thought just came to me that I'm about to test... npm run version-stamp EDIT1: Yeah, looks like that was it. First thing I ran and a "find" showed the file. Now to see if it gets incorporated after the rest of my steps (which I expect it will). EDIT2: Yup, that was the only step I was missing:

$ ./zap-cli --version
Version: 2023.3.27
Feature level: 94
Hash: 15f96c4f997301da1174ef29156c1c7d442f5d44
Date: 2023-03-27T17:20:50.000Z
Mode: binary
Executable: ./zap-cli
paulr34 commented 1 year ago

Will look into it and get back to you. thanks.