File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ import { Writable } from "node:stream";
55import { createWriteStream } from "node:fs" ;
66import { $ } from "execa" ;
77
8+ const ext = process . platform === "win32" ? ".exe" : "" ;
9+
810/**
911 *
1012 * @param {import('node:fs').PathLike } destRaw
@@ -95,8 +97,8 @@ export async function typstMetaInstall(
9597 await rm ( new URL ( archive , destFileURL ) , { force : true } ) ;
9698 await mkdir ( new URL ( "./bin/" , destFileURL ) , { recursive : true } ) ;
9799 await rename (
98- new URL ( `./${ folder } /typst` , destFileURL ) ,
99- new URL ( " ./bin/typst" , destFileURL )
100+ new URL ( `./${ folder } /typst${ ext } ` , destFileURL ) ,
101+ new URL ( ` ./bin/typst${ ext } ` , destFileURL )
100102 ) ;
101103 await rm ( new URL ( `./${ folder } ` , destFileURL ) , {
102104 recursive : true ,
You can’t perform that action at this time.
0 commit comments