Skip to content

abdnh/ankiscripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anki Add-on Scripts

Scripts for Anki add-on development intended for my own use. The file structure used in my add-on template is expected by scripts here.

Scripts

A script to package add-on sources into an .ankiaddon file. It's inspired by ankitects/anki-addons and glutanimate/anki-addon-builder. Take a look at Glutanimate's add-on builder if you want something more mature and tested.

This script runs Anki with the base folder ankidata in the current directory and some useful env variables set for debugging. This is intended for testing the add-on after building and copying src/ to ankidata/addons21 or symlinking it.

This script automates some chores I used to do manually when setting up a new add-on using my add-on template (e.g. modifying README.md and addon.json, and symlinking the src folder to an Anki base folder.)

This is used to format the "Support & feature requests" and "Support me" sections of my add-on template's README and set up add-on specific support links.

This script takes a path to an add-on and compares it with the template, offering to write non-existing files and output diffs of changed files. I use this to update add-ons with the latest changes to the template.

This installs libraries in requirements/bundle.txt (if found) to src/vendor. It has experimental support for handling dependencies with C modules by downloading platform-specific wheels and copying library files to the vendor folder.

This updates dependencies using pip-tools.

This creates a sources zip using git-archive and git-bundle.

Prints relevant changes from CHANGELOG.md given a version string. Used for GitHub release descriptions.

About

A collection of scripts to build my Anki add-ons

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published