Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare the JSON generation for NV Access add-on datastore #22

Closed
josephsl opened this issue Oct 10, 2022 · 12 comments
Closed

Prepare the JSON generation for NV Access add-on datastore #22

josephsl opened this issue Oct 10, 2022 · 12 comments

Comments

@josephsl
Copy link
Contributor

Hi,

As NV Access is looking into add-on store proposal, and since some add-ons were registered on the NV Access datastore, it makes sense to prepare the add-ons community by offering a way to generate needed data for the add-on store entry. The store entry is a JSON file that records add-on name/ID, author, version, update channel, SHA256 hash, among other data. Therefore, at the template level, edit SConstruct to generate a template JSON file which must be filled in by authors once add-on package generation completes (some values may require manual editing such as version major.minor.patch/publisher, etc.).

This will be done in the following steps:

  1. Enhanced buildVars.py by including fields such as license.
  2. Edit SConstruct to generate a template JSON file named the same as add-on package name.

Thanks.

@nvdaes
Copy link
Contributor

nvdaes commented Oct 11, 2022

for me this is good. If I remember well, according to @feerrenroot, one approach for now is to use runcreatejson and runvalidate.bat files available in the addon-datastore and add-on-datastore-validation repos, and I use this approach. This is hard, so I have thought about implementing this via GithubActions, but the template is a good approach too.

@josephsl
Copy link
Contributor Author

josephsl commented Oct 11, 2022 via email

@nvdaes
Copy link
Contributor

nvdaes commented Oct 11, 2022 via email

@nvdaes
Copy link
Contributor

nvdaes commented Oct 11, 2022 via email

@josephsl
Copy link
Contributor Author

josephsl commented Oct 11, 2022 via email

@nvdaes
Copy link
Contributor

nvdaes commented Oct 11, 2022 via email

@feerrenrut
Copy link

This is good news from my perspective. Streamlining the tooling to make the process easier for add-on developers is fantastic.

@nvdaes
Copy link
Contributor

nvdaes commented Oct 12, 2022 via email

@josephsl
Copy link
Contributor Author

josephsl commented Oct 12, 2022 via email

@nvdaes
Copy link
Contributor

nvdaes commented Oct 12, 2022 via email

josephsl added a commit that referenced this issue Oct 12, 2022
NV Access add-on store uses JSON to represent add-on release data. Therefore add add-on license, license URL, and source (repository) URL, used when generating add-on store JSON file (there are other fields such as publisher and hash but they must be defined after JSON is created).
josephsl added a commit that referenced this issue Oct 12, 2022
Define a json generator that takes the path of an add-on bundle and builds NV Access add-on store json entry.
josephsl added a commit that referenced this issue Oct 12, 2022
Call json generator after building add-on package for submission to NV Access add-on store.
@josephsl
Copy link
Contributor Author

Hi,

Resolved as of SConstruct commit that calls json generator. To use the json generator, add-on authors must specify NV Access add-on store fields in their build vars. After the json file is generate,d one must edit the json file to add proper values for publisher, URL (download link, that is) and add-on version number, then rename the json to major.minor.patch.json. I'll incorporate needed changes in Add-on Updater 22.11 and Windows App Essentials 22.12.

Thanks.

@nvdaes
Copy link
Contributor

nvdaes commented Oct 12, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants