Release v1.0.4: fix TheTVDB search ID parsing.

Parse series-76320 style search hits from TheTVDB v4, document Gear Lever Forgejo setup, and adjust AppImage build metadata for update detection.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Bulk Renamer
2026-07-03 17:17:49 -05:00
co-authored by Cursor
parent b3ce276d1b
commit db460fb9b3
6 changed files with 96 additions and 47 deletions
+15 -1
View File
@@ -9,6 +9,7 @@ cd "$(dirname "$0")"
APP_NAME="HSRename"
APPDIR="${APP_NAME}.AppDir"
EXE_NAME="$APP_NAME"
VERSION="$(tr -d '[:space:]' < VERSION 2>/dev/null || echo "")"
echo "=== Installing build deps ==="
pip install -q -r requirements.txt -r requirements-build.txt
@@ -30,6 +31,18 @@ echo "=== Creating AppDir ==="
rm -rf "$APPDIR"
mkdir -p "$APPDIR/usr/bin"
cp -a "dist/$EXE_NAME" "$APPDIR/usr/bin/"
mkdir -p "$APPDIR/usr/share/hsrename"
echo "$VERSION" > "$APPDIR/usr/share/hsrename/VERSION"
if [[ -f "packaging/release-stamp-${VERSION}.txt" ]]; then
cp "packaging/release-stamp-${VERSION}.txt" "$APPDIR/usr/share/hsrename/release-stamp.txt"
fi
# Gear Lever compares file sizes; incompressible pad for patch releases (zeros squash to nothing).
dd if=/dev/urandom of="$APPDIR/usr/share/hsrename/.buildpad" bs=1024 count=300 status=none
cat > "$APPDIR/usr/share/hsrename/changelog.txt" << EOF
HSRename ${VERSION}
- Fix TheTVDB search dropping results (parse series-76320 style IDs)
- Gear Lever Forgejo update docs
EOF
cat > "$APPDIR/AppRun" << EOF
#!/bin/sh
@@ -39,7 +52,7 @@ exec "\$HERE/usr/bin/$EXE_NAME/$EXE_NAME" "\$@"
EOF
chmod +x "$APPDIR/AppRun"
cat > "$APPDIR/hsrename.desktop" << 'EOF'
cat > "$APPDIR/hsrename.desktop" << EOF
[Desktop Entry]
Name=HSRename
Comment=Mass rename files with preview and flexible rules
@@ -47,6 +60,7 @@ Exec=HSRename
Icon=HSRename
Type=Application
Categories=Utility;FileTools;
X-AppImage-Version=${VERSION}
EOF
# Use project icon as app icon and logo
if [[ -f HSRename.png ]]; then