Skip to content

Commit

Permalink
Restore original CWD in Install-gui.ps1 (#8912)
Browse files Browse the repository at this point in the history
The original script left the user in the `chia-blockchain-gui/` directory and despite the instructions to `cd chia-blockchain-gui`.
  • Loading branch information
altendky authored Oct 29, 2021
1 parent b4ab2bd commit 3df0f9e
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions Install-gui.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,20 @@ Write-Output "Running 'git submodule update --init --recursive'."
Write-Output ""
git submodule update --init --recursive

Set-Location chia-blockchain-gui
Push-Location
try {
Set-Location chia-blockchain-gui

$ErrorActionPreference = "SilentlyContinue"
npm install --loglevel=error
npm audit fix
npm run build
py ..\installhelper.py
$ErrorActionPreference = "SilentlyContinue"
npm install --loglevel=error
npm audit fix
npm run build
py ..\installhelper.py

Write-Output ""
Write-Output "Chia blockchain Install-gui.ps1 completed."
Write-Output ""
Write-Output "Type 'cd chia-blockchain-gui' and then 'npm run electron' to start the GUI."
Write-Output ""
Write-Output "Chia blockchain Install-gui.ps1 completed."
Write-Output ""
Write-Output "Type 'cd chia-blockchain-gui' and then 'npm run electron' to start the GUI."
} finally {
Pop-Location
}

0 comments on commit 3df0f9e

Please sign in to comment.