Skip to content

Commit

Permalink
WinSetup: fix missing Git in path
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Feb 3, 2025
1 parent 2490d81 commit 70ee0c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions WinSetup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ function Install-Init {
echo "**ERROR** Neko.exe could not be found in PATH"
Exit
}

# 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-Item -Path env:OPAMROOT -Value "$OpamRepo"
Expand All @@ -48,16 +48,16 @@ function Install-Opam {
}

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
$tmpFile = "./mbed.tgz"
Invoke-Expression "curl $MbedTLS -o $tmpFile"
Invoke-Expression "tar -C / -xvf $tmpFile"
Remove-Item "$tmpFile"

# 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) {
Expand Down

0 comments on commit 70ee0c8

Please sign in to comment.