feat(native): retain Apple bundle executable provenance

This commit is contained in:
hhang authored and Ysopwnable committed 2026-11-22 15:41:50 +08:00
1 parent c1943f196c
commit b8995f8148
15 files changed
+315 -23

No files matched your search

+11 -3
View File
@@ -53,9 +53,17 @@ it.each([
await writeFile(executable, "inert fixture; never executed");
const result = await resolveAppleBundleExecutable(bundle);
expect(result).toEqual({
expect(result).toMatchObject({
ok: true,
value: { executable, infoPlist: plistPath },
value: {
executable,
infoPlist: plistPath,
bundleExecutableSelection: {
canonical_path: bundle,
layout: plistDirectory.length === 0 ? "root" : "contents",
declared_executable: "Fixture",
},
},
});
},
);
@@ -94,7 +102,7 @@ describe("app bundle Info.plist magic", () => {
await writeFile(plistPath, binaryPlistExecutableWithThreeByteUid());
await writeFile(executable, "inert fixture; never executed");
expect(await resolveAppleBundleExecutable(bundle)).toEqual({
expect(await resolveAppleBundleExecutable(bundle)).toMatchObject({
ok: true,
value: { executable, infoPlist: plistPath },
});