-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31741f1
commit a12ac11
Showing
91 changed files
with
3,178 additions
and
861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
$ErrorActionPreference = "Stop" | ||
|
||
if ($null -eq (Get-ChildItem env:VIRTUAL_ENV -ErrorAction SilentlyContinue)) | ||
{ | ||
Write-Output "This script requires that the Wheat Python virtual environment is activated." | ||
Write-Output "Execute '.\venv\Scripts\Activate.ps1' before running." | ||
Exit 1 | ||
} | ||
|
||
if ($null -eq (Get-Command node -ErrorAction SilentlyContinue)) | ||
{ | ||
Write-Output "Unable to find Node.js" | ||
Exit 1 | ||
} | ||
|
||
Write-Output "Running 'git submodule update --init --recursive'." | ||
Write-Output "" | ||
git submodule update --init --recursive | ||
|
||
Push-Location | ||
try { | ||
Set-Location wheat-blockchain-gui | ||
|
||
$ErrorActionPreference = "SilentlyContinue" | ||
npm install --loglevel=error | ||
npm audit fix | ||
npm run build | ||
py ..\installhelper.py | ||
|
||
Write-Output "" | ||
Write-Output "Wheat blockchain Install-gui.ps1 completed." | ||
Write-Output "" | ||
Write-Output "Type 'cd wheat-blockchain-gui' and then 'npm run electron' to start the GUI." | ||
} finally { | ||
Pop-Location | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
$ErrorActionPreference = "Stop" | ||
|
||
if ([Environment]::Is64BitOperatingSystem -eq $false) | ||
{ | ||
Write-Output "Wheat requires a 64-bit Windows installation" | ||
Exit 1 | ||
} | ||
|
||
if (-not (Get-Item -ErrorAction SilentlyContinue "$env:windir\System32\msvcp140.dll").Exists) | ||
{ | ||
Write-Output "Unable to find Visual C++ Runtime DLLs" | ||
Write-Output "" | ||
Write-Output "Download and install the Visual C++ Redistributable for Visual Studio 2019 package from:" | ||
Write-Output "https://visualstudio.microsoft.com/downloads/#microsoft-visual-c-redistributable-for-visual-studio-2019" | ||
Exit 1 | ||
} | ||
|
||
if ($null -eq (Get-Command git -ErrorAction SilentlyContinue)) | ||
{ | ||
Write-Output "Unable to find git" | ||
Exit 1 | ||
} | ||
|
||
git submodule update --init mozilla-ca | ||
|
||
if ($null -eq (Get-Command py -ErrorAction SilentlyContinue)) | ||
{ | ||
Write-Output "Unable to find py" | ||
Write-Output "Note the check box during installation of Python to install the Python Launcher for Windows." | ||
Write-Output "" | ||
Write-Output "https://docs.python.org/3/using/windows.html#installation-steps" | ||
Exit 1 | ||
} | ||
|
||
$pythonVersion = (py --version).split(" ")[1] | ||
if ([version]$pythonVersion -lt [version]"3.7.0") | ||
{ | ||
Write-Output "Found Python version:" $pythonVersion | ||
Write-Output "Installation requires Python 3.7 or later" | ||
Exit 1 | ||
} | ||
Write-Output "Python version is:" $pythonVersion | ||
|
||
py -m venv venv | ||
|
||
venv\scripts\python -m pip install --upgrade pip setuptools wheel | ||
venv\scripts\pip install --extra-index-url https://pypi.chia.net/simple/ miniupnpc==2.2.2 | ||
venv\scripts\pip install --editable . --extra-index-url https://pypi.chia.net/simple/ | ||
|
||
Write-Output "" | ||
Write-Output "Wheat blockchain .\Install.ps1 complete." | ||
Write-Output "For assistance join us on Keybase in the #support chat channel:" | ||
Write-Output "https://keybase.io/team/wheat_network.public" | ||
Write-Output "" | ||
Write-Output "Try the Quick Start Guide to running wheat-blockchain:" | ||
Write-Output "https://github.com/WheatNetwork/wheat-blockchain/wiki/Quick-Start-Guide" | ||
Write-Output "" | ||
Write-Output "To install the GUI type '.\Install-gui.ps1' after '.\venv\scripts\Activate.ps1'." | ||
Write-Output "" | ||
Write-Output "Type '.\venv\Scripts\Activate.ps1' and then 'wheat init' to begin." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.