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

Add manifest.json #186

Merged
merged 2 commits into from
Jun 1, 2023
Merged

Add manifest.json #186

merged 2 commits into from
Jun 1, 2023

Conversation

aplaice
Copy link
Collaborator

@aplaice aplaice commented Jan 31, 2023

I do not think that keeping manifest.json in the source tree has any disadvantages (e.g. for manual install or for uploading to AnkiWeb). Having a manifest.json allows users to install the zipped add-on via the new-ish "sharing outside ankiweb" install process[0].

Not all the fields are specified in the docs, but they can be sleuthed by inspecting Anki's source code[1].

It might make sense for mod and human_version, to be updated automatically, when releasing, or we could just drop them.

If we ever have beta builds, the conflicts field could allow the release builds to conflict with the beta builds (and vice-versa), to allow users a way to quickly and easily switch.

A positive max_point_version does not indicate maximum 2.1.x compatible Anki version, but the highest version tested.

[0] https://addon-docs.ankiweb.net/sharing.html#sharing-outside-ankiweb

[1] https://github.com/ankitects/anki/blob/c32f14f7cbc9461e35548afa5b42c5424606008f/qt/aqt/addons.py#L186


For the moment I manually added a manifest.json to the latest release.

I do not think that keeping manifest.json in the source tree has any
disadvantages (e.g. for manual install or for uploading to AnkiWeb).
Having a manifest.json allows users to install the zipped add-on via
the new-ish "sharing outside ankiweb" install process[0].

Not all the fields are specified in the docs, but they can be sleuthed
by inspecting Anki's source code[1].

It _might_ make sense for `mod` and `human_version`, to be updated
automatically, when releasing, or we could just drop them.

If we ever have beta builds, the conflicts field could allow the
release builds to conflict with the beta builds (and vice-versa), to
allow users a way to quickly and easily switch.

A positive max_point_version does not indicate maximum 2.1.x
compatible Anki version, but the highest version tested.

[0] https://addon-docs.ankiweb.net/sharing.html#sharing-outside-ankiweb

[1] https://github.com/ankitects/anki/blob/
c32f14f7cbc9461e35548afa5b42c5424606008f/qt/aqt/addons.py#L186
`mod` and `human_version` could be added automatically during release,
with `date "+%s"` and `git describe`.
@aplaice aplaice marked this pull request as ready for review May 29, 2023 09:00
@aplaice aplaice changed the title WIP Add manifest.json Add manifest.json Jun 1, 2023
@aplaice aplaice merged commit 7bbd216 into Stvad:master Jun 1, 2023
@aplaice aplaice deleted the manifest_json branch June 1, 2023 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant