glutanimate / mini-format-pack

Extends Anki 2.1 with a number of additional text formatting buttons
https://ankiweb.net/shared/info/295889520
Other
49 stars 13 forks source link

mini-format pack does not include latest commits after building (possible aab issue?) #29

Open martyn0ff opened 2 years ago

martyn0ff commented 2 years ago

Problem description

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?

Some mini-format-pack features are not being built correctly with aab build (nor are they present in a release). For example, commit 725bb85 that adds a button for inserting inline code doesn't get added into the package. Somehow after running aab build, build/dist/src/mini_format_pack folder ends up with old config.json and main.py files that don't contain necessary changes that come from that commit (even though they are present in src/mini_format_pack/ folder).

It is possible to fix this by adding main.py and config.json manually to the package file (which seems to be a .zip) by issuing the following commands on Linux:

$ zip mini-format-pack-v0.1.1-anki21.ankiaddon config.json
$ zip mini-format-pack-v0.1.1-anki21.ankiaddon main.py

After that, those features become available: Screenshot

Checklist

Please replace the space inside the brackets with an x if the following items apply:

Information about your Anki set-up

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below: