fix(ci): repair cross-platform package verification

This commit is contained in:
morluto
2026-07-24 15:22:24 +00:00
parent f904668fbc
commit 1c9e50814e
5 changed files with 43 additions and 31 deletions
+6 -2
View File
@@ -16,9 +16,13 @@ export const matchesOwnedProcessCommand = (
if (platform !== "darwin") return false;
const actualExecutable = actualCommand.split(/\s+/u, 1)[0];
const expectedExecutable = expectedCommand.split(/\s+/u, 1)[0];
const normalizedActualExecutable =
actualExecutable?.startsWith("(") === true && actualExecutable.endsWith(")")
? actualExecutable.slice(1, -1)
: actualExecutable;
return (
actualExecutable !== undefined &&
normalizedActualExecutable !== undefined &&
expectedExecutable !== undefined &&
basename(actualExecutable) === basename(expectedExecutable)
basename(normalizedActualExecutable) === basename(expectedExecutable)
);
};