fix(artifacts): expand nested ASARs on Windows (#582)

This commit is contained in:
morluto
2026-10-05 23:33:59 +08:00
committed by GitHub
parent 28e0f4e9ec
commit ebb4c45b68
2 changed files with 6 additions and 4 deletions
@@ -1,3 +1,5 @@
import { isAbsolute } from "node:path";
import {
ArtifactPathRegistry,
normalizeArtifactPath,
@@ -234,7 +236,7 @@ const digestArtifactEntry = async (
const isExpandableAsar = (entry: ArtifactEntry, logicalPath: string): boolean =>
entry.kind === "file" &&
logicalPath.toLowerCase().endsWith(".asar") &&
entry.adapterKey.startsWith("/");
isAbsolute(entry.adapterKey);
const isUnavailableUnpackedEntry = (
cause: unknown,