11 0 11 Sign in to rate

AnkiHub - automatic plugin updater based on github

0.03MB. Updated 2016-09-11. Only supports Anki 2.0.x.

The author has shared 6 other item(s).

Description

How users can install your plugin Install AnkiHub in Anki (code: 116826216) Restart Anki Go to Tools > Add-Ons > From GitHub Enter the GitHub path (e.g. dayjaby/AnkiHub) An Anki restart is NOT necessary anymore!! Or: Register your plugin If you prefer the users to use the standard way to install your plugin, then add the following code to your plugins: try: import ankihub ankihub.update(['githubUsername/repository']) except: pass Release a new version In your github repository for your plugin click on 'releases' and then 'Draft a new release'

Enter appropriate title and description

Upload the .zip file from your plugin

Enter a tag name of the form v0.0 for major releases or v0.0.X (with X>0) for minor releases Major releases must contain the entire plugin as .zip, whereas minor releases should be used for smaller updates, e.g. when you have changed only one .py file. You can create such small update zip files by running the command from the root of your plugin. rm small-update.zip 7z a small-update.zip path/to/updatedFile If you are done, it should look like: This will automatically notify the users about new versions for your plugins on github!If you prefer the users to use the standard way to install your plugin, then add the following code to your plugins:Major releases must contain the entire plugin as .zip, whereas minor releases should be used for smaller updates, e.g. when you have changed only one .py file. You can create such small update zip files by running the command from the root of your plugin.If you are done, it should look like: https://github.com/dayjaby/AnkiHub/releases The next time the user starts Anki, he will get a notification about your new release:

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

This add-on previously supported Anki 2.0. You can download the last version supporting 2.0 here. As Anki 2.0 has been discontinued, no support is available for this version.

All Anki 2.1.x Add-Ons

Reviews

Thx.