fix(target): explain the JavaScript directory analysis route (#733)

This commit is contained in:
N0zoM1z0 authored and GitHub committed 2026-10-06 19:53:08 +08:00
1 parent 9dd6cef90a
commit 8d44b3edd3
15 files changed
+181 -16

No files matched your search

+9 -1
View File
@@ -217,7 +217,15 @@ const resolveAppBundle = async (
const metadata = await stat(path);
if (!metadata.isDirectory()) return ok(path);
if (extname(path).toLowerCase() !== ".app")
return err(new BinaryTargetError(path, "target is not an app or file"));
return err(
new BinaryTargetError(
path,
"this opening route requires a file or macOS app bundle",
{
constraint: "directory_requires_file",
},
),
);
const plistPath = join(path, "Contents", "Info.plist");
let name: string;
try {