From c54ee7876c5d802467fa9f972e20b8c62550e2da Mon Sep 17 00:00:00 2001 From: Bulk Renamer Date: Fri, 3 Jul 2026 17:23:45 -0500 Subject: [PATCH] Fix AppImage verify step to inspect the PyInstaller binary. The squashfs wrapper does not contain module path strings reliably. Co-authored-by: Cursor --- build_appimage.sh | 4 ++-- release_gitea.sh | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/build_appimage.sh b/build_appimage.sh index 22001fb..8dca188 100755 --- a/build_appimage.sh +++ b/build_appimage.sh @@ -75,7 +75,7 @@ else exit 1 fi -if ! strings "$OUT" | grep -q "engine.tvdb_client"; then - echo "ERROR: Built AppImage is missing TheTVDB modules." >&2 +if ! strings "dist/$EXE_NAME/$EXE_NAME" | grep -q "engine.tvdb_client"; then + echo "ERROR: Built executable is missing TheTVDB modules." >&2 exit 1 fi diff --git a/release_gitea.sh b/release_gitea.sh index 3ae92bf..cef627a 100755 --- a/release_gitea.sh +++ b/release_gitea.sh @@ -28,12 +28,16 @@ verify_appimage() { echo "Missing $APP_IMAGE after build." >&2 exit 1 fi - if ! strings "$APP_IMAGE" | grep -q "engine.tvdb_client"; then - echo "ERROR: $APP_IMAGE is missing TheTVDB modules; refusing to publish." >&2 + if [[ ! -f "dist/HSRename/HSRename" ]]; then + echo "Missing dist/HSRename/HSRename after build." >&2 exit 1 fi - if ! strings "$APP_IMAGE" | grep -q "engine.episode_match"; then - echo "ERROR: $APP_IMAGE is missing episode matching; refusing to publish." >&2 + if ! strings "dist/HSRename/HSRename" | grep -q "engine.tvdb_client"; then + 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 fi }