File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ async function prep_toolchain(tmpdir: Path, srcroot: Path) {
9393 set("APPDATA");
9494 set("USERPROFILE");
9595 set("COMSPEC");
96+ set("PATHEXT");
9697 }
9798
9899 env["PKGX_BIN"] = bin.string;
Original file line number Diff line number Diff line change @@ -41,12 +41,6 @@ export default async function (
4141 if ( ! url . endsWith ( ".zip" ) ) {
4242 const [ cmd , ...args ] = mktar ( url , stripComponents ) ;
4343
44- // console.error("HI", Deno.env.get("PATH"));
45- // for await (const path of new Path(Deno.env.get("PKGX_BIN")!).ls()) {
46- // console.error("HII", path);
47- // }
48- // console.error(cmd, args);
49-
5044 const tar = new Deno . Command ( cmd , {
5145 args : args ,
5246 stdin : "piped" ,
@@ -102,8 +96,6 @@ function mktar(url: string, stripComponents?: number) {
10296 switch ( Deno . build . os ) {
10397 case "windows" :
10498 case "linux" : {
105- console . error ( find_in_PATH ( "pkgx" ) ) ;
106-
10799 // we use the system tar for efficiency and because on Windows
108100 // we couldn’t get ours to work (at least when we wrote this code)
109101 // and because on windows the tar.exe is bsdtar which can extract zip files
@@ -120,5 +112,7 @@ function mktar(url: string, stripComponents?: number) {
120112 const rv = [ "tar" , mode , "-" ] ;
121113 if ( stripComponents ) rv . push ( `--strip-components=${ stripComponents } ` ) ;
122114 return rv ;
115+ default :
116+ throw new Error ( "unsupported platform" ) ;
123117 }
124118}
You can’t perform that action at this time.
0 commit comments