Fix AppImage verify step to inspect the PyInstaller binary.

The squashfs wrapper does not contain module path strings reliably.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Bulk Renamer
2026-07-03 17:23:45 -05:00
co-authored by Cursor
parent 9ba2c68ff9
commit c54ee7876c
2 changed files with 10 additions and 6 deletions
+2 -2
View File
@@ -75,7 +75,7 @@ else
exit 1 exit 1
fi fi
if ! strings "$OUT" | grep -q "engine.tvdb_client"; then if ! strings "dist/$EXE_NAME/$EXE_NAME" | grep -q "engine.tvdb_client"; then
echo "ERROR: Built AppImage is missing TheTVDB modules." >&2 echo "ERROR: Built executable is missing TheTVDB modules." >&2
exit 1 exit 1
fi fi
+8 -4
View File
@@ -28,12 +28,16 @@ verify_appimage() {
echo "Missing $APP_IMAGE after build." >&2 echo "Missing $APP_IMAGE after build." >&2
exit 1 exit 1
fi fi
if ! strings "$APP_IMAGE" | grep -q "engine.tvdb_client"; then if [[ ! -f "dist/HSRename/HSRename" ]]; then
echo "ERROR: $APP_IMAGE is missing TheTVDB modules; refusing to publish." >&2 echo "Missing dist/HSRename/HSRename after build." >&2
exit 1 exit 1
fi fi
if ! strings "$APP_IMAGE" | grep -q "engine.episode_match"; then if ! strings "dist/HSRename/HSRename" | grep -q "engine.tvdb_client"; then
echo "ERROR: $APP_IMAGE is missing episode matching; refusing to publish." >&2 echo "ERROR: Built executable is missing TheTVDB modules; refusing to publish." >&2
exit 1
fi
if ! strings "dist/HSRename/HSRename" | grep -q "engine.episode_match"; then
echo "ERROR: Built executable is missing episode matching; refusing to publish." >&2
exit 1 exit 1
fi fi
} }