From 5ba4bf8a52157c013f712d3e899488135ff028fe Mon Sep 17 00:00:00 2001 From: mortii Date: Sun, 22 Oct 2023 12:38:19 +0200 Subject: [PATCH] updated bundle script --- bundle_addon.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bundle_addon.sh b/bundle_addon.sh index 82bc4a1..b54c22e 100644 --- a/bundle_addon.sh +++ b/bundle_addon.sh @@ -1,2 +1,4 @@ -rm -rf ./.pytest_cache/ ./.mypy_cache/ ankimorphs/meta.json -cd ankimorphs && zip -r ../ankimorphs.ankiaddon ./* +cd ankimorphs || { echo "cd failed"; exit 1; } +find . -regex '^.*\(__pycache__\|\.py[co]\)$' -delete +rm meta.json +zip -r ../ankimorphs.ankiaddon ./*