mirror of
https://github.com/morluto/rea.git
synced 2026-11-23 15:05:51 +00:00
feat(native): retain Apple bundle executable provenance
This commit is contained in:
1 parent
c1943f196c
commit
b8995f8148
15 files changed
+315
-23
No files matched your search
@@ -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 },
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user