Fix install_gui.ps1 when passing in a git commit/branch in Windows (#21142)

fix install gui when passing in a git commit/branch in windows
This commit is contained in:
matt-o-how
2026-07-21 09:59:50 -07:00
committed by GitHub
parent bd84573182
commit 54201dc537
+8 -8
View File
@@ -17,19 +17,19 @@ if ($null -eq (Get-Command node -ErrorAction SilentlyContinue))
Write-Output "Running 'git submodule update --init --recursive'."
Write-Output ""
git submodule update --init --recursive
if ( $SUBMODULE_BRANCH ) {
git fetch --all
git reset --hard $SUBMODULE_BRANCH
Write-Output ""
Write-Output "Building the GUI with branch $SUBMODULE_BRANCH"
Write-Output ""
}
Push-Location
try {
Set-Location chia-blockchain-gui
if ( $SUBMODULE_BRANCH ) {
git fetch --all
git reset --hard $SUBMODULE_BRANCH
Write-Output ""
Write-Output "Building the GUI with branch $SUBMODULE_BRANCH"
Write-Output ""
}
$ErrorActionPreference = "SilentlyContinue"
npm ci --loglevel=error
npm audit fix