Release v1.0.5: fix botched AppImage publish pipeline.
Stop tracking HSRename.AppImage in git, always rebuild before release, and verify TheTVDB modules are bundled. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
+8
-10
@@ -14,7 +14,8 @@ VERSION="$(tr -d '[:space:]' < VERSION 2>/dev/null || echo "")"
|
||||
echo "=== Installing build deps ==="
|
||||
pip install -q -r requirements.txt -r requirements-build.txt
|
||||
|
||||
echo "=== Running PyInstaller ==="
|
||||
echo "=== Running PyInstaller (clean) ==="
|
||||
rm -rf build dist HSRename.spec
|
||||
pyinstaller --noconfirm --onedir --windowed \
|
||||
-n "$EXE_NAME" \
|
||||
--hidden-import=engine \
|
||||
@@ -36,13 +37,6 @@ 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
|
||||
@@ -70,7 +64,6 @@ else
|
||||
fi
|
||||
|
||||
echo "=== Building AppImage (requires appimagetool) ==="
|
||||
# Note: appimagetool does not accept plain https URLs for -u; use zsync/gh-releases-zsync per AppImage docs.
|
||||
if command -v appimagetool &>/dev/null; then
|
||||
OUT="${APP_NAME}.AppImage"
|
||||
appimagetool "$APPDIR" "$OUT"
|
||||
@@ -79,5 +72,10 @@ else
|
||||
echo "AppDir is ready at $APPDIR/"
|
||||
echo "To create the .AppImage, install appimagetool and run:"
|
||||
echo " appimagetool $APPDIR ${APP_NAME}.AppImage"
|
||||
echo " # Get it from: https://github.com/AppImage/appimagetool/releases"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! strings "$OUT" | grep -q "engine.tvdb_client"; then
|
||||
echo "ERROR: Built AppImage is missing TheTVDB modules." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user