Преглед на файлове

WinSetup: fix missing Git in path (#11965)

Yuxiao Mao преди 5 месеца
родител
ревизия
5fdbe5f96d
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 6 6
      WinSetup.ps1

+ 6 - 6
WinSetup.ps1

@@ -31,9 +31,9 @@ function Install-Init {
 		echo "**ERROR** Neko.exe could not be found in PATH"
 		echo "**ERROR** Neko.exe could not be found in PATH"
 		Exit
 		Exit
 	}
 	}
-	
+
 	# reset PATH to prevent conflicting cygwin or existing install
 	# reset PATH to prevent conflicting cygwin or existing install
-	Set-Item -Path env:PATH -Value "$CygRoot\usr\x86_64-w64-mingw32\bin;$CygRoot\bin;$Opam;$Neko;$WinSysPath"
+	Set-Item -Path env:PATH -Value "$CygRoot\usr\x86_64-w64-mingw32\bin;$CygRoot\bin;$Opam;$Neko;$Git;$WinSysPath"
 
 
 	# set OPAM root dir
 	# set OPAM root dir
 	Set-Item -Path env:OPAMROOT -Value "$OpamRepo"
 	Set-Item -Path env:OPAMROOT -Value "$OpamRepo"
@@ -48,16 +48,16 @@ function Install-Opam {
 }
 }
 
 
 function Install-Haxe-Deps {
 function Install-Haxe-Deps {
-	Invoke-Expression "opam install . --deps-only --confirm-level=yes"	
-	
+	Invoke-Expression "opam install . --deps-only --confirm-level=yes"
+
 	# install mbedtls mingw package
 	# install mbedtls mingw package
 	$tmpFile = "./mbed.tgz"
 	$tmpFile = "./mbed.tgz"
 	Invoke-Expression "curl $MbedTLS -o $tmpFile"
 	Invoke-Expression "curl $MbedTLS -o $tmpFile"
 	Invoke-Expression "tar -C / -xvf $tmpFile"
 	Invoke-Expression "tar -C / -xvf $tmpFile"
 	Remove-Item "$tmpFile"
 	Remove-Item "$tmpFile"
-	
+
 	# install lsp server
 	# install lsp server
-	Invoke-Expression "opam install ocaml-lsp-server --confirm-level=yes"	
+	Invoke-Expression "opam install ocaml-lsp-server --confirm-level=yes"
 }
 }
 
 
 function Add-Path($NewPath) {
 function Add-Path($NewPath) {