mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-24 10:05:29 -05:00
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:
+8
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user