Created
October 7, 2016 13:59
-
-
Save tomconte/15cdb1cbc198949118fee90f7ed9ab25 to your computer and use it in GitHub Desktop.
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
# Install all pre-requisites for Ethereum Truffle | |
# Once complete, just open a new terminal window and run: | |
# npm install -g truffle | |
# If you want TestRPC: | |
# npm install -g testrpc | |
# N.B.: must be run as Administrator | |
# Also need to make sure the execution policy allows running scripts that aren't code-signed | |
# Set-ExecutionPolicy Unrestricted -Scope CurrentUser | |
# Download & install Node.JS | |
Set-Location $env:TEMP | |
$nodeVersion = "v6.7.0" | |
$nodeInstaller = "node-v6.7.0-x64.msi" | |
Invoke-WebRequest -UseBasicParsing -Uri "https://nodejs.org/dist/$nodeVersion/$nodeInstaller" -OutFile $nodeInstaller | |
Start-Process $nodeInstaller /quiet -Wait | |
# Refresh the Path | |
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") | |
# Install Windows Build Tools | |
# https://github.com/felixrieseberg/windows-build-tools | |
npm install --global windows-build-tools | |
# Update to very latest version of npm | |
npm install --global npm@latest | |
# We also need git; let's use Scoop to install it | |
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') | |
scoop install git | |
# Install OpenSSL libraries -- required by secp256k1 | |
# We need the older 1.0.2 version that includes libeay32.lib | |
$openSSLInstaller = "Win64OpenSSL-1_0_2j.exe" | |
Invoke-WebRequest -UseBasicParsing -Uri "https://slproweb.com/download/$openSSLInstaller" -OutFile $openSSLInstaller | |
Start-Process $openSSLInstaller /verysilent -Wait | |
# The End | |
Write-Output "All done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment