mirror of
https://github.com/morluto/rea.git
synced 2026-11-05 06:15:59 +00:00
fix(artifacts): preserve selected ASAR companion paths
This commit is contained in:
1 parent
e891926534
commit
779d548c4e
19 files changed
+643
-38
No files matched your search
@@ -8,12 +8,13 @@ export const createJavaScriptArtifactReader = (
|
||||
path: string,
|
||||
format: "asar" | "directory",
|
||||
asarHeaderAdmission?: AsarHeaderAdmission,
|
||||
selectedPath?: string,
|
||||
): ArtifactReader =>
|
||||
format === "asar"
|
||||
? new AsarArtifactReader(
|
||||
path,
|
||||
asarHeaderAdmission === undefined
|
||||
? new AsarArtifactReader(path, {
|
||||
...(asarHeaderAdmission === undefined
|
||||
? {}
|
||||
: { headerAdmission: asarHeaderAdmission },
|
||||
)
|
||||
: { headerAdmission: asarHeaderAdmission }),
|
||||
...(selectedPath === undefined ? {} : { selectedPath }),
|
||||
})
|
||||
: new DirectoryArtifactReader(path, "omit");
|
||||
Reference in new issue
Block a user