fix(cli): route app bundles with trailing separators to native analysis (#3511)

This commit is contained in:
Wade authored and GitHub committed 2026-10-15 15:55:44 +09:00
1 parent c61a24b8c5
commit d94ef22d70
2 files changed
+54 -1

No files matched your search

+2 -1
View File
@@ -235,7 +235,8 @@ const routesToJavaScriptAnalysis = async (
const isJavaScriptApplicationPath = async (path: string): Promise<boolean> => {
const lower = path.toLowerCase();
if (lower.endsWith(".asar")) return true;
if (lower.endsWith(".app")) return false;
// `A.app/` and `A.app/.` name the same bundle as `A.app`.
if (lower.replace(/(?:\/\.?)+$/u, "").endsWith(".app")) return false;
try {
return (await stat(path)).isDirectory();
} catch (cause: unknown) {