fix(pyinstaller): retain executable member metadata

Fixes #6702
This commit is contained in:
morluto committed 2026-10-23 21:28:10 +08:00
1 parent 131c1f1219
commit 045c7dd63a
1 file changed
+3 -1
+3 -1
View File
@@ -96,6 +96,7 @@ export const projectStoredMember = (
kind: symlink ? "symlink" : "file",
declaredSize,
compressedSize: entry.compressedSize,
executable: entry.typeCode === "b",
byteOffset: sourceByteOffset(entry, archiveStart),
limitations,
adapterKey: `carchive:${String(entry.index)}:${entry.name}`,
@@ -316,6 +317,7 @@ const fileEntry = (input: {
readonly limitations: readonly string[];
readonly adapterKey: string;
readonly formatMetadata: PyInstallerEntryMetadata;
readonly executable?: boolean;
readonly encrypted?: boolean;
readonly kind?: "file" | "symlink" | "metadata";
}): ArtifactEntry => ({
@@ -323,7 +325,7 @@ const fileEntry = (input: {
kind: input.kind ?? "file",
declaredSize: input.declaredSize,
compressedSize: input.compressedSize,
executable: false,
executable: input.executable === true,
encrypted: input.encrypted === true,
byteOffset: input.byteOffset,
declaredIntegrity: null,