mirror of
https://github.com/morluto/rea.git
synced 2026-11-09 16:26:36 +00:00
fix(cli): route app bundles with trailing separators to native analysis (#3511)
This commit is contained in:
2 files changed
+54
-1
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user