Skip to content

Commit 5e536ab

Browse files
author
Talha Altınel
authored
prepare for addon release (#24)
1 parent d35414d commit 5e536ab

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

addon/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "addon"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
description = "Laverna Addon for Anki Application"
55
readme = "README.md"
66
requires-python = ">=3.13"

addon/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/addon-zip.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
# Build script for Laverna Anki Addon
4+
# Creates a .ankiaddon package for distribution on AnkiWeb
5+
6+
set -e
7+
8+
# Get the directory where this script is located
9+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
10+
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
11+
ADDON_DIR="$PROJECT_ROOT/addon"
12+
13+
cd "$ADDON_DIR"
14+
15+
echo "Working directory: $ADDON_DIR"
16+
17+
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
18+
find . -type d -name ".mypy_cache" -exec rm -rf {} + 2>/dev/null || true
19+
find . -type d -name ".ruff_cache" -exec rm -rf {} + 2>/dev/null || true
20+
find . -type f -name "*.pyc" -delete 2>/dev/null || true
21+
rm -f addon.log 2>/dev/null || true
22+
23+
7z a -tzip "$PROJECT_ROOT/laverna-addon.ankiaddon" __init__.py config.json README.md
24+
25+
echo "Done! Package created at: $PROJECT_ROOT/laverna-addon.ankiaddon"

0 commit comments

Comments
 (0)