Skip to content

Commit 263db93

Browse files
authored
chore: fix windows path in build script
1 parent ee41ac3 commit 263db93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/build_skia.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ if (Deno.env.get("SKIA_FROM_SOURCE") !== "1") {
5353
"-o",
5454
"-d",
5555
"../",
56-
new URL(`../skia/out/Release/prebuilt.zip`, import.meta.url).pathname,
56+
new URL(`../skia/out/Release/prebuilt.zip`, import.meta.url).pathname.slice(
57+
Deno.build.os === "windows" ? 1 : 0,
58+
),
5759
);
5860
console.log(`Downloaded prebuilt binaries (${relName}, ${os})`);
5961
Deno.exit(0);

0 commit comments

Comments
 (0)