feat: GitHub Release Management v1.3.0 - Version menu, dev-mode, downgrade support

This commit is contained in:
2026-02-16 23:39:41 +01:00
parent 441198dd8d
commit ad4cfaf4ec
10 changed files with 687 additions and 81 deletions

View File

@@ -25,8 +25,9 @@ if [ ! -f "$CSS_FILE" ]; then echo "ERROR: $CSS_FILE not found"; exit 1; fi
if [ ! -f "$JS_FILE" ]; then echo "ERROR: $JS_FILE not found"; exit 1; fi
CSS_CONTENT=$(cat "$CSS_FILE")
# Inject version into JS
JS_CONTENT=$(cat "$JS_FILE" | sed "s/{{VERSION}}/$VERSION/g")
JS_CONTENT=$(cat "$JS_FILE" | sed "s|{{VERSION}}|$VERSION|g")
# === 1. Build standalone HTML (for local testing/dev) ===
cat > "$DIST_DIR/kantine-standalone.html" << HTMLEOF
@@ -265,3 +266,13 @@ if [ $TEST_EXIT -ne 0 ]; then
exit 1
fi
echo "✅ All build tests passed."
# === 5. Auto-tag version ===
echo ""
echo "=== Tagging $VERSION ==="
if git rev-parse "$VERSION" >/dev/null 2>&1; then
echo " Tag $VERSION already exists, skipping."
else
git tag "$VERSION"
echo "✅ Created tag: $VERSION"
fi