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:
+2
-2
@@ -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
|
||||
|
||||
+8
-4
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user